Last active
April 6, 2022 15:08
Revisions
-
000benniu revised this gist
Apr 6, 2022 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,6 @@ <#-- Dump all the values for web contents. Use as asset publisher's template. (tested on DXP 7.1) --> <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> -
000benniu revised this gist
Apr 6, 2022 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,8 @@ <#-- Dump all the values for web contents. Use as asset publisher's template. (tested on DXP 7.1) ! need change the ddmTemplate Key to --> <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> @@ -9,7 +11,7 @@ Use as asset publisher's template. (tested on DXP 7.1) <#assign journalArticle = journalArticleLocalService.getLatestArticle(curEntry.getClassPK()) /> <@liferay_journal["journal-article"] articleId=journalArticle.getArticleId() ddmTemplateKey=journalArticle.getDDMTemplateKey() groupId=journalArticle.getGroupId() /> -----------<br/> -
000benniu renamed this gist
Apr 6, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
000benniu renamed this gist
Apr 6, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
000benniu created this gist
Apr 6, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ <#-- Dump all the values for web contents. Use as asset publisher's template. (tested on DXP 7.1) --> <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> <#if entries?has_content> <#list entries as curEntry> <#assign journalArticle = journalArticleLocalService.getLatestArticle(curEntry.getClassPK()) /> <@liferay_journal["journal-article"] articleId=journalArticle.getArticleId() ddmTemplateKey="36970" groupId=journalArticle.getGroupId() /> -----------<br/> </#list> </#if>