O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Social activity and social bookmarks

You would be able to add social activity tracking to a portlet via the tag liferay-ui:social-activities, and moreover, you can add social bookmarks in a portlet through the tag liferay-ui:social-bookmarks.

Settings

Social activities could be displayed through the tag liferay-ui:social-activities as follows:

<liferay-ui:social-activities
activities="<%= activities %>"
feedEnabled="<%= true %>"
feedTitle="<%= HtmlUtil.escape(taglibFeedTitle) %>"
feedLink="<%= rssURL.toString() %>"
feedLinkMessage="<%= HtmlUtil.escape(taglibFeedLinkMessage) %>"
/>

As shown in the preceding code, the tag liferay-ui:social-activities could have optional attributes such as activities, className, classPK, feedEnabled, feedLink, feelLinkMessage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required