%sitename not showing in collaboration email templates

Author Message

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:52:04
Script start
Timing: Jan 19 2025 04:52:04
Module start 'layout'
Timing: Jan 19 2025 04:52:04
Module start 'content'
Timing: Jan 19 2025 04:52:04
Module end 'content'
Timing: Jan 19 2025 04:52:04
Script end

Main resources:

Total runtime0.6234 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.4063152.6563
Module start 'layout' 0.00640.0031 742.062539.5234
Module start 'content' 0.00960.6127 781.5859530.0938
Module end 'content' 0.62230.0011 1,311.67978.1094
Script end 0.6234  1,319.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5210160.0002
Check MTime0.00130.2147160.0001
Mysql Total
Database connection0.00080.134410.0008
Mysqli_queries0.579492.9387540.0107
Looping result0.00050.0724520.0000
Template Total0.591594.920.2957
Template load0.00200.327420.0010
Template processing0.589494.544820.2947
Template load and register function0.00010.016410.0001
states
state_id_array0.00130.208210.0013
state_identifier_array0.00070.104720.0003
Override
Cache load0.00150.2459160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.107720.0003
Fetch class attribute name0.00120.190140.0003
XML
Image XML parsing0.00090.150820.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00090.1477220.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs