Adding bookmark button to Plone page
Plone: Tips on how to add bookmarklets to Digg, Del.icio.us, Furl, Facebook, Yahoo Myweb, Reddit, Ask, Live, Stumbleupon, and more.
This is one method which can be used to add bookmarklet that enable viewer of your site to save or bookmark your site to a number of popular bookmark and social network sites. Here goes.
- Go to AddThis.com. Choose "Bookmarking widget" as widget type, and choose your preferred widget format. Click on "Get Your Free Button". You should get a JavaScript snippets. Ohh, you probably need to create account on AddThis.com of you haven't.
- Open your site ZMI. Navigate to your site root -> portal_view_customizations. Click on plone.belowcontenttitle.keywords. Click Customize.
- Paste the code snippet that you get from AddThis.com before the last </div>. Refer to the highlight below.
<div i18n:domain="plone" id="category" class="documentByLine" tal:define="categories context/Subject|nothing" tal:condition="categories"> — <tal:filedunder i18n:translate="label_filed_under">filed under:</tal:filedunder> <span tal:repeat="category categories"> <a href="" class="link-category" rel="tag" tal:content="category" tal:attributes="href string:${context/portal_url}/search?Subject%3Alist=${category}"> Category </a><tal:separator condition="not: repeat/category/end">,</tal:separator> </span> <!-- AddThis Bookmark Button BEGIN --> <script type="text/javascript"> addthis_url = location.href; addthis_title = document.title; addthis_pub = 'xxxxxx'; </script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script> <!-- AddThis Bookmark Button END --> </div> - Ta-daaa.
BTW, with this setup, the bookmarklet will appear after your category listing. If you want it to appear somewhere else, you can experiment by editing different portal customization template as shown in step (2).

Previous:
Using modinfo





