In your STK model you can call getSite().getParameters().get("myParam");
And the "properties" subnode Jan mentioned is really a content node 
"parameters" directly under the "default" site, with the parameters as node data

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Jan Haderka (via Magnolia Forums)
Gesendet: Dienstag, 16. Oktober 2012 19:20
An: Magnolia User List
Betreff: [magnolia-user] Re: Declaring custom variables in Site Configuration 
and overriding for websites

It's actually ${state.site.parameters.myparam} in FM template ... 
In model it's siteManager.getCurrentSite().getParameters().get("myParam");
to get the site manager ... you can either inject it or you need to call 
Components.getSingleton(SiteManager.class)

See http://documentation.magnolia-cms.com/technical-guide/templating.html for 
more details

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=82643cdb-c116-4ad8-8fdd-7a09d584dd92


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to