+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / how to change Social Bookmark image url

how to change Social Bookmark image url

14 posts, 0 answered
  1. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    20 Oct 2010
    Link to this post
    we recently updated our login pages to ssl and have discovered that in the areas where we use the social bookmarks, the images do not show up. when i investigate this it is because the image URLs are not HTTP. what are my different options to resolve this issue so the images show up?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Oct 2010
    Link to this post
    Hello ASA,

    Inside each ContentView based control  and its Advanced tab there is a properties section - Social Bookmars. There you will find three properties

    • SocialBookmarkImageFolder - you can use this property to change the location of the images and get the outside of the HTTPS
    • SocialBookmarkTemplate - xml file with all bookmarks data
    • BookmarkEnabled - boolean type property, specifies whether the bookmarks are enabled or not.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    20 Oct 2010
    Link to this post
    I don't think i completely understand. I have found the socialbookmarktemplate.xml file, which i tried to edit the location by adding the following to the extended property on the page, which didn't work. I found that file within the control templates of sitefinity.

          <imagePath><![CDATA[~/path/{0}_{1}.png]]></imagePath>

    Where are you suggesting that i go to edit the image URL path?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    20 Oct 2010
    Link to this post
    Hi ASA,

    Which control you use to show social bookmarks? Our controls that use social bookmarks resolve the path relatively depending on the current host and the image should not be broken. You could take a look at attached screenshot. If you use a custom socialbookmars which images are on your server, please check the whether the links are resolved relatively. If the images are on a remote server you should use absolute urls.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    20 Oct 2010
    Link to this post
    I believe we are using your default. My links show just as you have it in the document. From you previous post, I didn't understand where I needed to go to edit the image URL path. Since i have my admin section of my website under HTTPS, that page is not allowed to access the images. I did find a section in the file Telerick.CMS.Engine.xml that had the control descriptions you described, but I cannot find the actual control that I can edit to change the URL. Below is what I see in the file.

            <member name="P:Telerik.Cms.Engine.WebControls.ContentView.BookmarkEnabled">
                <summary>
                enables or disables social bookmark.
                </summary>
            </member>
            <member name="P:Telerik.Cms.Engine.WebControls.ContentView.SocialBookmarkTemplate">
                <summary>
                contains the Template path on which the bookmarks will be rendered.
                </summary>
            </member>
            <member name="P:Telerik.Cms.Engine.WebControls.ContentView.SocialBookmarkImageFolder">
                <summary>
                contains the path, where image are stored for social bookmarks.
                </summary>
            </member>

  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Oct 2010
    Link to this post
    Hi ASA,

    The default path to socialbookmark xml is

    ~/Sitefinity/ControlTemplates/Generic_Content/socialBookmarkTemplate.xml

    The Images are located in ~/Sitefinity/ControlTemplates/Generic_Content/SocialBookmark/

    Currently you are looking in a completely different file.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    21 Oct 2010
    Link to this post
    Ivan, I am completely confused. What file am I supposed to use to edit the images URL? The 2 files you listed the xml and the actual image folder are not what I am looking for. I need to tell the control to use a different path to get to the images than that one that is used by default.
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Oct 2010
    Link to this post
    Hello ASA,

    "SocialBookmarkImageFolder - you can use this property to change the location of the images" that the control will use.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  9. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    21 Oct 2010
    Link to this post
    where is this property located?? what file?
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    22 Oct 2010
    Link to this post
    Hello ASA,

    "Inside each ContentView based control  and its Advanced tab there is a properties section - Social Bookmars. There you will find three properties... "


    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    26 Oct 2010
    Link to this post
    I don't understand what is meant by "Inside each ContentView based control". Can you clarify?
  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Oct 2010
    Link to this post
    Hello ASA,

    When you open the control for editing and go to its advanced tab you will see all public properties mapped to the control designer. The properties below

    • SocialBookmarkImageFolder - you can use this property to change the location of the images and get the outside of the HTTPS
    • SocialBookmarkTemplate - xml file with all bookmarks data
    • BookmarkEnabled - boolean type property, specifies whether the bookmarks are enabled or not.
    are located inside SocialBookmarks properties section of the control designer.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  13. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    26 Oct 2010
    Link to this post
    where is the control?
  14. Sharlyne
    Sharlyne avatar
    30 posts
    Registered:
    14 Aug 2008
    19 Nov 2010
    Link to this post
    For those that may be looking for this, i found it! it's not in the controls files that you create and load into sitefinity, it's on the other side, the website portal. Once logged into sitefinity, when you drop the control into a page, there you find the "advnaced tab" that the telerik team refers to.

    Unfortunately for me, even after making these changes, it is still not referencing the correct location. If anyone has more info please let me know.
Register for webinar
14 posts, 0 answered