java - Passing values from pages to components in magnolia -


if have variable assign in page:

<#assign myvar = "testing">  <@cms.area name="area-name"/> 

and i'd able use variable in nested area or component, how pass around application?

<#list components component>     ${myvar} </#list> 

[@cms.area name="main" contextattributes={"myvar":myvar}/]

${ctx.myvar}

enjoy! :)


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -