Sometimes I need to access a few system (or Magnolia) properties in the
freemarker templates, expecially in the mail ones. Often because this is
the fastest way I thought to put in the mail the server address as it is
for the "outside" world, to make clickable links.
So I'm wondering if it should be possible to permanently add these two
lines in the FreemarkerHelper class, addDefaultData method:
data.put("statics", BeansWrapper.getDefaultInstance().getStaticModels());
data.put("enums", BeansWrapper.getDefaultInstance().getEnumModels());
For the 3.6.x branch this is particularly usefult because I found no
other method to get a few extra parameters in mail templates, or at
least to inject a Mangolia node to compose mail body.
Thanks for any suggestion.
Regards, Danilo.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------