Grégory Joseph wrote:

Simply in the main.ftl ?

Ok, so my module has two parts now.

1. A dialog tab under stkHomeProperties which allows editing the site-wide settings for statistics.
2. A custom FreeMarker template that is included in the main.ftl.

Now all I need to connect these two. I want to access the properties that are saved by the dialog in my FreeMarker template. How do I get to these properties from a random page on the website? I found I can use content?parent to access a parent node, but how would I get a reference to the home content node for any subpage?

For the homepage:
* content?node_type is mgnl:content
* content?parent?node_type is rep:root

But of course I should be able to access the home node from any arbitarily nested page to get this to work. Can I create some kind of while loop to walk up the tree? Or is there another way? Or am I just storing the site-wide settings in the wrong place?

Nils Breunese.

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to