Hi Eric
You can access Template Information bei using the class
"info.magnolia.cms.beans.config.Template". Check the API Doc for more
information.
But I am wondering why you want to add the property "show-left-column"
to the template. Wouldn't it make more sense to keep this value
individual for every webpage? Either create a Dialog and add that
property there, or then add that property to the "page properties" dialog.
Another possibility is to create a configuration setup in the "Config"
repository, where you can create properties to fine tune your web
application. For example you could create a node within Config like
"myProject/internet" and "myProject/intranet" and below each node add
the same property "show-left-column". This way you could use the same
template for the intranet and internet and adapt the behavior according
to these config parameters.
cheers
/giancarlo
Eric Everman wrote:
Hi-
I'm likely missing something really obvious, but....
How do I access template properties from the page? For instance, I
have a modules/templating/Templates/some-template with a node-data
entry of "show-left-column" = "true". How do I access that in a page
that is using the template?
Thanks in advance,
Eric Everman
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------