Messages between pagelayout and module.content

Author Message

Wojciech Rębisz

Monday 10 December 2007 6:34:50 am

Hi,
Im wondering how can I personalize messages displayed in the <i>'shop/userregister'</i> which shows template <i>'user/login'</i> in the webshop.
When Im opening my 'orders' page, i got some warning message <i>"Access denied, possible reasons... etc. You have to log in" </i>
I was looking for some tokens that could display this, but I didn't found anything.
Could it be that

$module_result.content

adds some extra notyfication messages befor showing right templates?
How can I place this message in some box in the place I need it to be shown?

Kind Regards,
Wojtek

Wojciech Rębisz

Tuesday 11 December 2007 12:53:53 am

Hi,
I manage to work out the problem.

The <i>'user/login'</i> wasn't the right template I was thinking that is shown. Actually system was using <i>'/warning/kernel/1.tpl'.</i>

When warning <b>No 1</b> have to be displayed system looks into <i>error.ini</i> file and there is defined the template that shall be included, after warning message is displayed:

# Set access denied to embed login
ErrorHandler[1]=embed
EmbedURL[1]=/user/login

In my case (and I think it is the default setting) i had <i>'user/login' .</i>

So....
I found out where come from the warning message <i>(/warning/kernel/1.tpl) </i> not from nowhere
And found out where come from the messages about template include <i>'user/login.tpl'</i> (it is defined in the <i>error.ini</i>)

Wojtek

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 18 2025 14:57:42
Script start
Timing: Jan 18 2025 14:57:42
Module start 'layout'
Timing: Jan 18 2025 14:57:42
Module start 'content'
Timing: Jan 18 2025 14:57:43
Module end 'content'
Timing: Jan 18 2025 14:57:43
Script end

Main resources:

Total runtime0.8537 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0469152.6406
Module start 'layout' 0.00430.0028 740.687539.4922
Module start 'content' 0.00710.8451 780.1797466.2500
Module end 'content' 0.85220.0015 1,246.42978.1250
Script end 0.8537  1,254.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3751160.0002
Check MTime0.00130.1578160.0001
Mysql Total
Database connection0.00070.081910.0007
Mysqli_queries0.805394.3298520.0155
Looping result0.00040.0424500.0000
Template Total0.823896.520.4119
Template load0.00210.247720.0011
Template processing0.821796.248620.4109
Template load and register function0.00010.011710.0001
states
state_id_array0.00090.100110.0009
state_identifier_array0.00100.121620.0005
Override
Cache load0.00170.2019260.0001
Sytem overhead
Fetch class attribute can translate value0.00050.056010.0005
Fetch class attribute name0.00130.152430.0004
XML
Image XML parsing0.00220.253210.0022
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00250.2876150.0002
String conversion0.00000.001040.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
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs