Wednesday, 24 April 2013

display journal article using structure and template

#set ($journalArticleLocalService = $serviceLocator.findService('com.liferay.portlet.journal.service.JournalArticleLocalService'))
#set ($curArticle = $journalArticleLocalService.getArticle($groupId,'10717'))
## get current value 10717 is article id
#set ($document = $saxReaderUtil.read($curArticle.getContent()))
#set ($root = $document.getRootElement())
#set ($contentC = $root.selectSingleNode("static-content")) 
${contentC.text}

This is really too good and work with structure and template so powerful!!!!!

@@@is there any query regarding this post then post here i will replay as soon as possible@@@