Created
July 22, 2019 11:39
-
-
Save jverweijL/bd2112c04bf42659f550ee0ea44a5165 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
<#if entries?has_content> | |
<#list entries as curEntry> | |
<#assign renderer = curEntry.getAssetRenderer() /> | |
<#assign journalArticle = renderer.getArticle() /> | |
<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> | |
<#assign categories = AssetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()) /> | |
<#if categories?has_content> | |
<#list categories as category> | |
${category.getName()} | |
</#list> | |
</#if> | |
<@liferay_journal["journal-article"] | |
articleId=journalArticle.getArticleId() | |
ddmTemplateKey="35985" | |
groupId=journalArticle.getGroupId() /> | |
</#list> | |
</#if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment