Matteo Pelucco wrote:

Nils Breunese ha scritto:
1. For the site-wide statistics settings I added a new tab under Templating Kit > Dialog Definitions > pages/home/stkHomeProperties. Does that make sense or would you place a dialog for site-wide settings elsewhere?
The point 2 is a better option, I think...
What do you mean exactly?

I would like to say that you can define global configuration and page configuration. If no page configuration is found, a global is taken. In this case you are more flexible.
Of course, only if your statistics engine / service let you do so...

The requirement for page-specific settings has been dropped for now, so that's been taken care of. But I haven't figured out how to access the site-wide properties that are stored under the home page from an arbitrarily nested subpage. How would you do this?

I'd have to know how many levels I need to go up to reach the home page or run some kind of while loop that accesses the parent until I've reached the home page which has the site-side properties. It seems there are utility functions for node children, not not any (recursive) parent functions. Am I missing something here?

I think, as Gregory suggested, that you can extend STK main.ftl including a custom template.
Extend? You mean replace main.ftl with a version that includes my custom template? That's what I did for now, and that works. But it feels dirty.

This is one option.
STK default implementation doesn't let you define a custom httpHeader, so you can use theme capabilities of including CSS / JS (simply defining them) or you can extends FTL templates with your own.

I'd like this module to be independent from any themes, so I guess I'll stay on the track of extending the main.ftl.

I think no other easy roads are possible.

Ok, thanks for thinking along.

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