Nils Breunese ha scritto:

A colleague of mine pointed out to me that he found something called 'autoGeneratedParagraph'. Would it make sense to plug something like that into the global Configuration -> modules -> standard-templating-kit -> config -> site (default in EE?) -> templates -> prototype tree somewhere to accomplish this?

Hi Nils,
it depends on your needs.
An autogenerated paragraph avoid editor to do following ops:

1) click on "new content" green button
2) add DEFAULT value where you want

It can be a good resource for lazy editor and for template-driven website approach and even for your use-case, if you want to spread your website with identical paragraphs (1 for page).

I think it is better to implement it like you would implement a header or a footer. Look at STK header / footer: they are defined once and then a template render them on every page. In that template you can of course read also custom page vars and place inside the javascript. For including the JS, it depends where the JS should be placed, I suppose it is an inline JS. In this case you may want to consider to extend STK templates with an external freemarker include instruction, that insert your custom template.

Less effort, big results! :-)

But this is how I would do... all depends on you!
HTH, Matteo


----------------------------------------------------------------
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