if you will create you custom field class then yes.
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=c2c6fa91-516f-485b--e560cb343361
For list details, see http://www.magnolia-cms.com/communi
Tomas, i'm talking about when i'm setting properties of new page, in the
dialog, it is possible get information about the ancestor node, here in the
properties dialog?
thanks
Mário
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=c2c6fa91-516f-485b--e560
sure, once you have your
[#assign rootPageNode = cmsfn.root(content, "mgnl:page")!content ]
you can easily do ${rootPageNode.}, and of course you can also go
to sub nodes, such as areas... ${rootPageNode.main..}
of course with all proper ?has_content checks. To be sure what you want to use,
chec
thanks you guys,
didn´t work with 'if rootPageNode??' but it works with 'if
rootPageNode?has_content'. I have another question, when I'm creating a new
page, i want to use properties from parent node, its possible get properties
from new page's parent?
thank you,
Mário
--
Context is everythi
hi Mario, also looking at your code then this should do what you want:
[code]
[#assign rootPageNode = cmsfn.root(content, "mgnl:page")!content ]
{{myVar='${rootPageNode.@name}'}}
[/code]
just remember if this code is execute on root page (root node), then cmsfn.root
Hi Mario
My first hint is: Understand the freemarker [i]${myObject} expression[/i] :-)
It is similar to the [i]#toString[/i] method in Java.
Simply said freemarker applies #toString to the object (myObject).
When you pass the typical [i]content[/i] object (which is of [i]type
info.magnolia.jcr.
Hi Christoph, it's a page template, i'm trying to get a page name to angularjs,
to do a request and bring the page properties. if know other way to do what i
want, please feel free to say.
thanks
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=c2c6fa91-516f-
Hi Mario
You should explain a bit more in detail what exactly you are trying to do.
>From what file have you pasted a snippet?
Is it a template, If yes, what template ... page or component? Or are you
working with "processed resources"?
What is the context of the content object which you are usi