On Jul 13, 2009, at 4:29 PM, Matteo Pelucco wrote:
Grégory Joseph ha scritto:
Is there a property in your node called "handle" ?
http://documentation.magnolia-cms.com/reference/freemarker.html
My god..
conte...@handle
I can not exactly understand why Magnolia can not expose the Content
object directly, but it seems the solution.
Nothing is exposed "directly" in Freemarker. One can choose between
several wrappers, or build your own. We built our own. To your more
direct question: "To distinguish the nodeData values and the bean
properties (node name, node type) we have introduced the @ notation";
the dot notation is only used to navigate in nodes/properties. It was
either that or being inconsistent when one would need to access a jcr
property actually called 'handle'. (and likewise, if we ever add more
properties to the *object* that are neither a subnode or a jcr
property, it'll be much easier to add a @xyz to the wrapper)
Sorry for the "use-before-study" question ;-)
Matteo
----------------------------------------------------------------
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]>
----------------------------------------------------------------