Many more time during development we need display liferay web-content in our custom-portlet.
Liferay taglib already give tag to display web-content data.
Here is syntax for "<liferay-ui:journal-article/>"
<<liferay-ui:journal-article showTitle="true/false" articleId="longArticleId" groupId="longGroupId" />
Let take an example...
<<liferay-ui:journal-article showTitle="false" articleId="<%= journalArticleId%>"
groupId="<%= themeDisplay.getScopeGroupId() %>" />
here journalArticleId is long var which is articelId of web-content
Liferay taglib already give tag to display web-content data.
Here is syntax for "<liferay-ui:journal-article/>"
<<liferay-ui:journal-article showTitle="true/false" articleId="longArticleId" groupId="longGroupId" />
Let take an example...
<<liferay-ui:journal-article showTitle="false" articleId="<%= journalArticleId%>"
groupId="<%= themeDisplay.getScopeGroupId() %>" />
here journalArticleId is long var which is articelId of web-content
No comments:
Post a Comment