Forums / Developer / Settings (.ini) available in templates?
Paul Borgermans
Tuesday 22 April 2003 2:54:17 am
Hello
Is there a way to get ini variables available in templates? I searched to code, but could not find anything.
Background: I'm trying to improve the forums and would like to set some variables in an existing or new ini file to be read in the templates (without adding php code). Examples: wether or not to display an icon/photo for each user, thread views or not etcetera.... Forums can be much improved by more advanced templates, but I would like to keep some parameters outside of the templates and group them in an ini file (that's what ini files are for).
Paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
Paulo Almeida
Tuesday 22 April 2003 5:22:55 am
i don't know if it will do what you want but try this:
{ezini('RegionalSettings','Locale')} __GROUP__ __VAR__
Paulo
PACPI.COM Internet Consulting http://pacpi.com
Tuesday 22 April 2003 6:11:27 am
Thanks,
I forgot the (undocumented) ezini function, although it was mentioned by Jan before.
I'll update the user docs to reflect this.
Jan Borsodi
Tuesday 22 April 2003 6:40:18 am
There's also a third parameter which states the ini file (site.ini is default). {ezini('DataTypeSettings','RepositoryDirectories','content.ini')} __GROUP__ __VAR__ __FILE__
-- Amos Documentation: http://ez.no/ez_publish/documentation FAQ: http://ez.no/ez_publish/documentation/faq