Skip to content

Instantly share code, notes, and snippets.

@mir333
mir333 / example.ftl
Created September 26, 2017 14:42 — forked from travisrcory/example.ftl
Using Liferay Web Content structure type to import articles
<#if contents.getSiblings()?has_content>
<#assign VOID = freeMarkerPortletPreferences.setValue("view", "basicContentView") />
<#list contents.getSiblings() as cur_contents>
<#assign article = cur_contents.getData()?eval />
<#--
* This is a liferay-ui taglib that allows for rendering assets.
* It is used throughout the portal, and here we can use it to display the articles we have nested
* It accepts: