Grégory Joseph wrote:

On Nov 10, 2009, at 11:29 AM, Nils Breunese wrote:
4. The most important question right now: I can set site-wide settings using this dialog, but where do I put the JavaScript code? This code should be included in every page and needs to be able to access to these settings, so I believe I can't put it under Resources > templating-kit/js/all because there I have no access to site/page-specific settings. Or am I wrong about that? I would really appreciate some guidance on this point.

Simply in the main.ftl ?

Yes, this is possible, but this means my statistics module will modify main.ftl (or footer.ftl, so some other core template). This is what I did now and it works, but what if another module also wants to insert a template by modifying the same template? Only one module can have its way then.

I guess that in that case I might need to create a module that includes templates from a specific location in the tree in a specific template and then have those template-modifying modules depend on that module or something. For now I'll just let my statistics module override main.ftl.

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