Skip to content

Instantly share code, notes, and snippets.

@jverweijL
Created July 22, 2019 11:39
Show Gist options
  • Save jverweijL/bd2112c04bf42659f550ee0ea44a5165 to your computer and use it in GitHub Desktop.
Save jverweijL/bd2112c04bf42659f550ee0ea44a5165 to your computer and use it in GitHub Desktop.
<#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