This is a migrated thread and some comments may be shown as answers.

Umbraco Social Share

1 Answer 27 Views
SocialShare
This is a migrated thread and some comments may be shown as answers.
Colin Wright
Top achievements
Rank 1
Colin Wright asked on 07 Feb 2012, 12:16 PM
has anyone used social share with Umbraco? I have it working but I was wondering if anyone new how to auto assign the urltoshare property based on the current page. There is an umbraco tag for the current page ($current_page/@id), but when I try and insert this into the property UrlToShare I get an invalid id.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Feb 2012, 04:57 PM
Hello Colin,

The RadSocialShare uses the URL of the current page (location.href to be more precise) when no other properties are set, so I suggest you leave this logic up to the control. More information on the order of precedence for the UrlToShare and TitleToShare properties can be found here: http://www.telerik.com/help/aspnet-ajax/radsocialshare-controlling-posts-content-and-title.html. As for the UrlToShare server property - it takes a string that can be root-relative (e.g. "~/mypage.aspx") but I am not familiar with this tag from Umbraco and I doubt it will resolve properly in the code.


Kind regards,
Marin
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
SocialShare
Asked by
Colin Wright
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or