Umbraco Social Share

2 posts, 0 answers
  1. Colin Wright
    Colin Wright avatar
    26 posts
    Member since:
    Mar 2008

    Posted 07 Feb 2012 Link to this post

    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.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 08 Feb 2012 Link to this post

    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 >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top