hi,
I wanted to add facebook in the socialbookmark. In the below code , i added facebook as a option
#set($socialBookmarksList = ['digg','delicious','yahoo','google','newsvine','facebook'])
#socialBookmarks() and then also in social_bookmarks.html file , I added the following code
#elseif($socialBookmark == "facebook")
<li> <a rel="nofollow" href="http://www.facebook.com/" onclick="dotCMS_SB_bookmark('facebook', pageTitle, pageURL);return false;" border="0"> <img src="/html/js/social_bookmarks/images/facebook.png" border="0" alt="Add to: Facebook" /> #if(!$UtilMethods.isSet($onlyIcons)) Facebook #end </a> </li> and also in social_bookmark.js , I added the code
if(site == "facebook"){
window.open('http://www.facebook.com/bookmarklets/save.php?v=1&source_url='+encodeURIComponent(pageURL)+'&title='+encodeURIComponent(pageTitle)); } but still i cannot see the link for facebook in socialbookmark by using the macro.
Any idea what need to be done or what is missed.
Nadeem |
--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.
I am using 1.9.3.2 .
I want to add the facebook as the socialbookmark among others.
I saw the code of facebook from addthis()
here it is <br/>
<!-- AddThis Follow BEGIN -->
<p>Follow Us</p> <div class="addthis_toolbox addthis_32x32_style addthis_default_style"> <a class="addthis_button_facebook_follow" addthis:userid="YOUR-PROFILE"></a> <a class="addthis_button_twitter_follow" addthis:userid="YOUR-USERNAME"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4fbfd7b8413600ad"></script> <!-- AddThis Follow END --> however , how can i embedd it the social bookmark , so that when i click share link, it shows these 2 options also.
|