Last active
April 6, 2022 15:08
-
-
Save 000benniu/2acd0f3897f4aa1ac600bc8fa2d7cb81 to your computer and use it in GitHub Desktop.
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 characters
<#-- | |
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=journalArticle.getDDMTemplateKey() | |
groupId=journalArticle.getGroupId() | |
/> | |
-----------<br/> | |
</#list> | |
</#if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related:
https://liferay.dev/blogs/-/blogs/a-wild-structure-type-has-appeared-