Displaying a Journal Article content within aspecified template using liferay-ui:tag
1.
<!—This tag wil display the journal article with in the Template mentioned à
if(articleDisplay!=null){
%>
<div>
<liferay-ui:journal-article templateId="USER_TEMPLATE_ID"
articleId="<%= journalArticle.getArticleId() %>"
groupId="<%= groupId %>" />
</div>
<%
}
%>
Note: if you don’t know the template to which this article is associated ,then we can use the journalArticle.getTemplateId() at “templateId” attribute of tag.
No comments:
Post a Comment