Skip to content

Instantly share code, notes, and snippets.

@baxtheman
baxtheman / adt.ftl
Created August 19, 2019 12:17
Liferay 7, asset publisher ADT, list preferences and variables context
<div>
<pre>
<#list portletPreferences?keys as preference>
<#if portletPreferences[preference] ??>
<#assign mapValues = portletPreferences[preference] />
<#list mapValues as value >
${preference} = ${value}<br />
</#list>
</#if>
</#list>
@gonzalezalo
gonzalezalo / accessing-content-in-template.ftl
Last active June 29, 2022 09:40
How to access a Structured Web Content from Template Liferay 7
<#--
There are several ways of accesing the data stored in a structured web content,
it can be accesible by name, if the field is a main level item,
it can be a repetible content and so we have to access it's siblings,
and it can be a nested field and we have to access it through the parent.
-->
<#-- Structure Example Source (reduced and simplified)
I have deleted a lot of lines to make a Proof of Concept
@elindoorn
elindoorn / reserved-web-content-variables.txt
Last active October 13, 2023 14:26
Reserved web content variables
reserved-article-asset-tag-names
reserved-article-author-comments
reserved-article-author-email-address
reserved-article-author-id
reserved-article-author-job-title
reserved-article-author-location
reserved-article-author-name
reserved-article-author-organization
reserved-article-create-date
reserved-article-description