Foros de discusión

How to remove social feature "Add this..." on blog posts?

thumbnail
Bruno Galvao, modificado hace 12 años.

How to remove social feature "Add this..." on blog posts?

Junior Member Mensajes: 58 Fecha de incorporación: 26/08/11 Mensajes recientes
Is there a way to remove the "Add this...." on blogs?
thumbnail
Rojalin Patri, modificado hace 12 años.

RE: How to remove social feature "Add this..." on blog posts?

Expert Mensajes: 287 Fecha de incorporación: 22/03/11 Mensajes recientes
Hi Bruno,
"Add to this .." is a part of social bookmark.Comment out the following portion in tomcat-6.0.29/webapps/ROOT/html/portlet/blogs/view_entry_content.jsp file.
<!-- <c:if test="<%= pageDisplayStyle.equals(RSSUtil.DISPLAY_STYLE_FULL_CONTENT) %>">
<liferay-ui:social-bookmarks
url="<%= bookmarkURL.toString() %>"
title="<%= entry.getTitle() %>"
target="_blank"
/>-->
This would remove/hide the link from front-end.
For any customization in jsp,creating and using hooks is advisable.
Hope this helps......
thumbnail
Dominik domih, modificado hace 12 años.

RE: How to remove social feature "Add this..." on blog posts?

Junior Member Mensajes: 57 Fecha de incorporación: 10/11/08 Mensajes recientes
If you have no problem that your blog submits and loads data from the social websites you could remove it by using the portlets look and feel -> advanced styling and add a css rule like this:
portletName .taglib-social-bookmarks { 
     display: none; 
}

otherwise the hint from above or setting the social bookmarks property to blank should work too.
Xav NYC, modificado hace 11 años.

RE: How to remove social feature "Add this..." on blog posts?

New Member Mensajes: 23 Fecha de incorporación: 27/09/12 Mensajes recientes
Hi,

You can remove the social bookmarks in your entire portal by configuring an empty list in
portal-ext.properties as follows:
social.bookmark.types=
It will disable social bookmarks in your entire portal.

X.