How to overwrite default social bookmarks in liferay

Daniel Kęska, modified 6 Years ago. New Member Posts: 12 Join Date: 4/25/19 Recent Posts
In my liferay structure i have default social bookmarks with many options to share: facebook, twitter, delicious etc. But I want to have only facebook and twitter. I do not have liferay app to manage plugins. I tried to put:
[code]social.bookmark.types=facebook, twitter
in my portal-ext.properties (with restart) but it didn't work. Where and how can i change it? Thanks!
thumbnail
Minhchau Dang, modified 6 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
Where and how can i change it?

In 6.x and 7.0.x, you can deploy additional hooks that provide social bookmarks, because social.bookmark.types can be updated using liferay-hook-*.dtd. In those versions of Liferay, you will need to update portal-ext.properties, and you'll need to update any plugins that have a liferay-hook.xml specifying a portal properties override and make sure to comment out any references to social.bookmark.types.

In 7.1.x and later, you would use the OSGi components blacklist in order to blacklist any components providing the com.liferay.social.bookmarks.SocialBookmark service that you don't want to use in your installation. Often, they will be the only thing in the bundle, so you could also try blacklisting the bundle.

You can get all the class names for the SocialBookmark components with the following GoGo shell command:

each [($.context servicereferences "com.liferay.social.bookmarks.SocialBookmark" null)] { ($.context service $it) class }


You can get all the bundle names for the SocialBookmark components with the following GoGo shell command:

each [($.context servicereferences "com.liferay.social.bookmarks.SocialBookmark" null)] { ($it bundle) symbolicname }