Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to overwrite default social bookmarks in liferay
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!
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:
You can get all the bundle names for the SocialBookmark components with the following GoGo shell command:
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 }