Je bent hier: Sitefinity Made Easy / Dutch Social Bookmarks maandag 6 februari 2012
Dutch Social Bookmarks in Sitefinity

Compatibility: Sitefinity 3.7

The Social Bookmarks option that can be enabled in several modules in Sitefinity (Images & Documents, Generic Content, Blogs, Events and News) is a great tool to quickly post content onto Social Media websites. Out of the box, this option comes with multiple bookmarks, most of which are international oriented.

To be able to use the Social Media websites which are popular in The Netherlands, it is easy to add these to the list already available. For this article we chose to add Hyves and NuJij, the two most popular Dutch Social Media websites. We will describe how to add these items manually in the correct way. You can also download the ZIP-file at the bottom of this article to immediately have all the files needed to add the mentioned bookmarks. All you have to do is extract these to the correct locations.

In order to add the correct settings manually, two steps have to be performed:

  1. Place the neccessary images at the correct location.
  2. Change the XML file that holds all the settings.

Place images

All the images that are used to display the Social Bookmarks are located at the following locations:

~/Sitefinity/ControlTemplates/Blogs/SocialBookmark/
~/Sitefinity/ControlTemplates/Events/SocialBookmark/
~/Sitefinity/ControlTemplates/Generic_Content/SocialBookmark/
~/Sitefinity/ControlTemplates/Libraries/SocialBookmark/
~/Sitefinity/ControlTemplates/News/SocialBookmark/

The downloadable ZIP-file contains 4 images. Each bookmark that is going to be added, requires 2 images: a 48x48px .png version and a 24x24px .png version. Extract the 4 images to one of the locations above, depending on which module you want to use them in. If you want to use the 2 new bookmarks in all modules possible, extract the images to all five locations! Do not forget to upload all of the images after the extraction is completed.
 

Change XML file

The file that holds all the bookmarks is named socialBookmarkTemplate.xml and can be found at the following locations:

~/Sitefinity/ControlTemplates/Blogs/
~/Sitefinity/ControlTemplates/Events/
~/Sitefinity/ControlTemplates/Generic_Content/
~/Sitefinity/ControlTemplates/Libraries/
~/Sitefinity/ControlTemplates/News/

Open the file from the module where you want the new bookmarks to appear. The layout of the socialBookmarkTemplate.xml file is very easy. Each bookmark starts with <bookmark title="....." name="....."> and ends with </bookmark>. Just copy the code for the two new bookmarks below and paste it where you want the new bookmarks to appear. 

<bookmark title="Hyves" name="Hyves">
      <url><![CDATA[http://www.hyves-share.nl/button/tip/?title={0}&body={1}]]></url>
    </bookmark>
    <bookmark title="NuJij" name="NuJij">
      <url><![CDATA[http://nujij.nl/jij.lynkx?t={1}&u={0}]]></url>
    </bookmark>
  

Now save the changes. If you want to use the new bookmarks  in all modules possible, perform this step five times. You could also edit one of the files for one module and then copy and paste it to all four other modules. Do not forget to upload all of the files that have been edited.

Don't even you feel like copying and pasting these few lines of code? Just extract the socialBookmarkTemplate.xml file from the ZIP-file and place it at the locations mentioned above.

>> Download ZIP-file

Twitter_48.png Follow us on Twitter and see when a new article is published!

   
   
Copyright 2006 WE ICT   |   Juridische note   |   Algemene voorwaarden   |   Contact