com.liferay.journal.web.portlet.template.dependencies.repeatable.ftl Maven / Gradle / Ivy
<#assign
itemName = "cur_" + stringUtil.replace(name, ".", "_")
variableName = name + ".getSiblings()"
/>
<#if stringUtil.equals(language, "ftl")>
${r"<#if"} ${variableName}?has_content>
${r"<#list"} ${variableName} as ${itemName}>
${templateContent}
${r"#list>"}
${r"#if>"}
<#else>
#if (!$${variableName}.isEmpty())
#foreach ($${itemName} in $${variableName})
${templateContent}
#end
#end
#if>