Forums de discussion
how to render a structure with the help of a template programatically
laxman teja, modifié il y a 11 années.
how to render a structure with the help of a template programatically
Junior Member Publications: 30 Date d'inscription: 17/04/12 Publications récentes
hi Friends,
in my web content i have defined a structure and a template .My question is can i render that structure with the help template Programatically....
Plz tell me the procedure and class with are used for it
in my web content i have defined a structure and a template .My question is can i render that structure with the help template Programatically....
Plz tell me the procedure and class with are used for it
Sergio Larios, modifié il y a 11 années.
RE: how to render a structure with the help of a template programatically
New Member Publications: 3 Date d'inscription: 29/03/12 Publications récentes
I think this might be what you are looking for:
JournalArticleDisplay jaDisplay = JournalArticleLocalServiceUtil.getArticleDisplay(groupId, articleId, "view", laguageId, themeDisplay);
String articleView = jaDisplay.getContent();
Mohamed Rizwanuzaman, modifié il y a 11 années.
RE: how to render a structure with the help of a template programatically
New Member Publications: 20 Date d'inscription: 17/12/09 Publications récentes
Hi Laxman,
You can use this lifearay taglib in jsp page to render the article
<liferay-ui:journal-article articleId="101235" groupId="10180"/>
Regards,
Rizwan
You can use this lifearay taglib in jsp page to render the article
<liferay-ui:journal-article articleId="101235" groupId="10180"/>
Regards,
Rizwan