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...
2. Actually, I only created a reference there and created the actual
dialog nodes under /modules/<module-name>/dialogs/tabSitestat. Is
that recommended over putting the tab directly in the STK tree?
Just for sharing purpose.
If you intend to use that tab somewhere else, it is a good practice :-)
So you can include it in stkHomeProperties, stkPageProperties, ...
The dialog is for site-wide settings, so I don't intend to use that tab
anywhere else but under stkHomeProperties. I guess it doesn't really
matter then.
As I said, it depends on you :-)
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 think no other easy roads are possible.
matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------