ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boris Hamanov" <bsh...@gmail.com>
Subject List all variables accesible to a freemarker template (ftl file)
Date Tue, 10 Apr 2012 18:16:37 GMT
Hi,

I am trying to see all data that is available to use inside my freemarker template.

So far I was able to list:

<#list requestAttributes?keys as var>
    ${var}
</#list>

<#list requestParameters?keys as var>
    ${var}
</#list>

<#list .data_model?keys as var>
    ${var}
</#list>

But this code below does not work, I guess I am not using the proper semantics, I am very
new to freemarker, any help there, please?

<#list .globals.globalVariables?keys as var>
    ${var}
</#list>

<#list sessionAttributes?keys as var>
    ${var}
</#list>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message