Forums

Home » Alloy UI » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
laxman teja
how to render a structure with the help of a template programatically
November 14, 2012 8:15 PM
Answer

laxman teja

Rank: Junior Member

Posts: 29

Join Date: April 16, 2012

Recent Posts

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
RE: how to render a structure with the help of a template programatically
November 20, 2012 5:56 AM
Answer

Sergio Larios

Rank: New Member

Posts: 3

Join Date: March 29, 2012

Recent Posts

I think this might be what you are looking for:

1
2JournalArticleDisplay jaDisplay = JournalArticleLocalServiceUtil.getArticleDisplay(groupId, articleId, "view", laguageId, themeDisplay);
3String articleView = jaDisplay.getContent();
Mohamed Rizwanuzaman
RE: how to render a structure with the help of a template programatically
December 10, 2012 2:54 AM
Answer

Mohamed Rizwanuzaman

Rank: New Member

Posts: 20

Join Date: December 16, 2009

Recent Posts

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