Wednesday 24 February 2010 2:21:44 pm
Hi all, I'm not sure this is a bug but, when receiving approval emails from an Event/Approve workflow, an incorrect value for SiteURL is used in the email template. I'm using ez4.1.3 using the extension-siteaccess method for multi-sites. I have overridden the default email templates successfully, but the default 'example.com' (from settings/site.ini) is still used as the value of %sitename in extension/my-extension/design/standard/templates/notification/handler/ezcollaboration/view/ezapprove/approve.tpl. If I modify the template code and replace %sitename with a custom var $site_url as follows, it still does the same thing:
{def
$site_url=ezini("SiteSettings","SiteURL","site.ini","settings/siteaccess/my-siteaccess/")
} However, if I add SiteURL to extension/my-extension/settings/site.ini.append.php and change the ezini() accordingly, the email template displays the correct SiteURL:
{def
$site_url=ezini("SiteSettings","SiteURL","site.ini","extension/my-extension/settings/")
}
{* This also works
{def
$site_url=ezini("SiteSettings","SiteURL","site.ini")
}
*} For my own sanity, I have been trying to keep a my configuration in one place: The main settings/siteaccess/my-siteaccess/blah.ini files. I don't think the email template should be taking its value from settings/site.ini (using 'example/com') when overrides do exist in settings/siteaccess/my-siteaccess/site.ini.append.php and wonder why it only finally worked when I added SiteURL to extension/my-extension/settings/site.ini.append.php. Can anyone replicate this?
Cheers all 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.
|