[magnolia-user] Re: cmsfn with angular

2017-07-31 Thread via Magnolia Forums
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

[magnolia-user] Re: cmsfn with angular

2017-07-30 Thread mario pacheco (via Magnolia Forums)
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

[magnolia-user] Re: cmsfn with angular

2017-07-28 Thread via Magnolia Forums
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

[magnolia-user] Re: cmsfn with angular

2017-07-27 Thread mario pacheco (via Magnolia Forums)
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

[magnolia-user] Re: cmsfn with angular

2017-07-26 Thread via Magnolia Forums
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

[magnolia-user] Re: cmsfn with angular

2017-07-25 Thread Christoph Meier (via Magnolia Forums)
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.

[magnolia-user] Re: cmsfn with angular

2017-07-25 Thread mario pacheco (via Magnolia Forums)
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-

[magnolia-user] Re: cmsfn with angular

2017-07-24 Thread Christoph Meier (via Magnolia Forums)
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