Here are the list of objects you have access to by default in your
templates:
http://documentation.magnolia-cms.com/releases/4-0-1/templating.html
So no, you don't have direct access to arbitrary nodes from an
arbitrary workspace. You'll indeed need to expose some helper class to
your templates through a model class; having a module to do is not
necessarily mandatory, just more handy for deployment - you could
however get your functionality working before spending time making a
module out of it.
-g
On Apr 23, 2009, at 2:13 PM, Nikolaus Förderreuther wrote:
Hi all,
I didn’t figure out if it’s possible to get access via Freemarker
Templates (STK) to content in the data module.
I’ve tried some dot-syntax expressions to the data nodes similar to
the ftl-tempates in the STK but nothing worked. Is it necessary to
develop some helper classes first and to create a new module?
Thanks in advance for a small hint.
Cheers,
Niki
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------