Foros de discusión

how to render a structure with the help of a template programatically

thumbnail
laxman teja, modificado hace 11 años.

how to render a structure with the help of a template programatically

Junior Member Mensajes: 30 Fecha de incorporación: 17/04/12 Mensajes recientes
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
Sergio Larios, modificado hace 11 años.

RE: how to render a structure with the help of a template programatically

New Member Mensajes: 3 Fecha de incorporación: 29/03/12 Mensajes recientes
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, modificado hace 11 años.

RE: how to render a structure with the help of a template programatically

New Member Mensajes: 20 Fecha de incorporación: 17/12/09 Mensajes recientes
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