Forums / Install & configuration / %sitename not showing in collaboration email templates
Russell Michell
Sunday 28 September 2008 6:54:28 pm
In settings/override/site.ini.append.php I had this:
[SiteSettings] DefaultAccess=duty SiteList[]=duty SiteList[]=duty_admin SiteList[]=eng SiteName= SiteURL=
This broke my email templates because "%sitename" in design/my-site/templates/notification/handler/ezcollaboration/view/ezapprove/author.tpl - wasn't showing.
So commenting-out SiteURL in the above file made it work by making eZ take the correct value from settings/siteaccess/my-site/site.ini.append.php. But shouldn't this happen though if eZ "allows" entries like "SiteURL=" in ini files?
The system that obtains these variables (the ezini() function I think) could be modded to only get a value from an ini setting if it's <b>not empty</b>, so "SiteURL=" would be ignored but "SiteURL=my-site.co.nz" would be used instead when declared in settings/siteaccess/my-site/site.ini.append.php for example.
Failing this, a message logged to error.log would be useful.
Thoughts?
Cheers,Russ
Russell Michell, Wellington, New Zealand. We're building! http://www.theruss.com/blog/ I'm on Twitter: http://twitter.com/therussdotcom Believe nothing, consider everything.
Yannick Komotir
Thursday 02 October 2008 1:11:36 am
hi, specify a value to your SiteName in site.ini.append.php of your siteaccess
<|- Software Engineer @ eZ Publish developpers -|> @ http://twitter.com/yannixk