フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
chirag @ India
display journal article using structure and template
2013/04/13 0:38
答え

chirag @ India

ランク: Regular Member

投稿: 129

参加年月日: 2011/12/20

最近の投稿

#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@@@
unike az
RE: display journal article using structure and template
2013/04/05 3:33
答え

unike az

ランク: New Member

投稿: 1

参加年月日: 2013/04/05

最近の投稿

I am using approximately the same code to get all articles with a specific structure
I have two articles which display date is in 2013, and it works very well but if I change the display date year ( for exemple 2010) for one article I get nothing.
Please, need a help emoticon
chirag @ India
RE: display journal article using structure and template
2013/04/13 0:44
答え

chirag @ India

ランク: Regular Member

投稿: 129

参加年月日: 2011/12/20

最近の投稿

For Display All Journal Articles of company below Code is working ,but one problem is that it display all version of web content ,i want latest one only and particular filter By structure Id.

#set ($curArticle = $journalArticleLocalService.getCompanyArticles($companyId,0,-1,-1))

Help Me