More in this section
Forums / Developing with Sitefinity / & in linkedin social bookmark

& in linkedin social bookmark

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Victor
    Victor avatar
    44 posts
    10 Mar 2009
    01 Jun 2009
    Link to this post
    I have been asked to add LinkedIn to the Social Bookmarks in Blog and News, I tried editing corresponding socialBookmarkTemplate.xml and added the following:

            <bookmark title="LinkedIn" name="LinkedIn" > 

    This doesn't work since LinkedIn doesn't understand "&amp;" in the Url, it expects just the "&" symbol to separate parameters.

    Is there a way to "escape" the "&" in a way it gets rendered correctly?

    Now, is there any documentation on how to create these bookmarks?, I can't find any and would like to know if there are any more parameters I can pass in the url.

  2. Parvan
    Parvan avatar
    151 posts
    24 Sep 2012
    03 Jun 2009
    Link to this post
    Hi Victor,

    One solution is to use control adapter for Hyperlink and replace the &amp; with &. Here are the steps to accomplish this:
    1. Open and edit the file located at ~/App_Browsers/BrowserFile.browser :
    Add a line for control adapter of Hyperlink:
    <?xml version='1.0' encoding='utf-8'?> 
      <browser refID="Default"
          <adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="Telerik.Cms.Web.FormAdapter, Telerik.Cms" /> 
          <adapter controlType="System.Web.UI.WebControls.RadioButtonList" adapterType="Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter" /> 
          <adapter controlType="System.Web.UI.WebControls.HyperLink" adapterType="Telerik.Cms.Web.UI.Adapters.HyperLinkAdapter" /> 

    2. Put the attached file HyperLinkAdapter.cs in your site App_Code folder.

    I hope this helps you.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
2 posts, 0 answered