This is a migrated thread and some comments may be shown as answers.

Sitefinitiy Blog SocialBookmarks edition

5 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 21 Oct 2010, 12:26 AM
Hi Guys!!
I´m trying to edit the social bookmark buttons to put a special code there and change the current ones, but I don´t have idea how to do that can you help me with that?
I notice that it works with a XML file but I want to use a .ascx that I made or just paste the following code.

<div class="addthis_toolbox addthis_default_style"><div class="addthis_toolbox addthis_default_style" style="display:inline; float:left"><a class="addthis_button_tweet"></a></div><div class="addthis_toolbox addthis_default_style" style="display:inline; float:left"><a class="addthis_button_facebook_like" fb: like:layout="button_count"></a></div><div style="display:inline; float:left"><a href="http://www.addthis.com/bookmark.php?v=250&amp;username=fleetcardsusa" class="addthis_button_compact">Share</a></div></div><script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=fleetcardsusa"></script>.

Another question is, I was able to put a new button in the editor toolbar of the sitefinity blog, but I was not able to set the image in the button, how can I do that?

thanks and greetings

5 Answers, 1 is accepted

Sort by
0
Ivan Dimitrov
Telerik team
answered on 21 Oct 2010, 09:42 AM
Hi victor,

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
  • SocialBookmarkTemplate - xml file with all bookmarks data
  • BookmarkEnabled - boolean type property, specifies whether the bookmarks are enabled or not.
The method that creates the Social Bookarks is private an you cannot override it. You have to create a custom control that inherits from ContentView and implement a custom method that reads your custom bookmarks in case changing the XML file does not satisfy your needs.


You could set an image for the RadEditor button by using css

sample

.reTool .<commandName>
{
  background-image: url(MyImage.gif);
 
}


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
0
Victor
Top achievements
Rank 1
answered on 21 Oct 2010, 05:51 PM
Ivan thanks for the quick answer.
I tried to set the css class as you said but is not working for me, I analyzed the button with a firefox tool and the class that inherits the button is the following:

.rade_toolbar.WebBlue .rade_tool span {
background-image:url("
WebResource.axd?d=TpptJxCm_v3Pz7U1YzTr9cSyS-z_6zQxpdQKroBnXTMePiDKoLfTz7PK0SQ4fLCLnwedLp4IYsFqUAPyVnbkKlsZDDDjZG9DZL8IAYIcTAQZ_GIEQcJSWfeM1Q0Zaixt6xajyJ4AYPyiPYUVZ55trmGWX581&t=633699738380000000");

I tried setting the class as .rade_toolbar .<commandName> and with .reTool .<commandName> but it didn´t work,  I want to change the blog text Editor in the module.aspx page, setting that button for all the blog post.


Greetings


0
Ivan Dimitrov
Telerik team
answered on 21 Oct 2010, 07:02 PM
Hello victor,

First you can set the background to none and then add reference to your tool.

Greetings,
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
0
Joel
Top achievements
Rank 1
answered on 28 Dec 2010, 01:25 PM
Hello!

I want to create a social bookmark usercontrol with the properties that the news control has, related with socialbookmarks. This usercontrol will be used in other controls that have news, comments... I need some help to start do it. Please.

Thanks
0
Ivan Dimitrov
Telerik team
answered on 28 Dec 2010, 01:47 PM
Hi victor,

All you need is the content item ID which you can get as shown in this post. Then you can use IContent interface properties to get the data for the current item and pass them to your custom social bookmarks.

Best wishes,
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
Tags
General Discussions
Asked by
Victor
Top achievements
Rank 1
Answers by
Ivan Dimitrov
Telerik team
Victor
Top achievements
Rank 1
Joel
Top achievements
Rank 1
Share this question
or