Hi Nils, Extending the Site class would indeed be one way to do this, and I can see how useful that would be changing "stuff" globally; since we have a similar "concept" for paragraphs/templates (the "parameters" Map), I'd personally be inclined to accept a patch that would add this in the default Site impl.
Cheers, -g On Jan 20, 2010, at 12:02 PM, Nils Breunese wrote: > > Hello all, > > I'm developing a paragraph (that will probably be used as an auto-generated > paragraph) that I'd like to be able to configure on the site-level. AFAIK > there is no functionality in Magnolia that will let me set arbitrary > properties on the site definition, as that just instantiates a Site object, > which has a fixed set of properties. > > Should I create a class that extends the Site class with a Map that I can put > arbitrary properties in (and from which paragraphs can read site-level > settings?) and use that class instead? Is this functionality that might be > interesting to add to Magnolia itself or am I the only one who needs this? > > Or is there another (better) way to accomplish this? > > Thanks, > > Nils Breunese. > > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
