留言板

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

thumbnail
Bruno Galvao,修改在12 年前。

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

Junior Member 帖子: 58 加入日期: 11-8-26 最近的帖子
Is there a way to remove the "Add this...." on blogs?
thumbnail
Rojalin Patri,修改在12 年前。

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

Expert 帖子: 287 加入日期: 11-3-22 最近的帖子
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,修改在12 年前。

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

Junior Member 帖子: 57 加入日期: 08-11-10 最近的帖子
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,修改在11 年前。

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

New Member 帖子: 23 加入日期: 12-9-27 最近的帖子
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.