pagedata path_array not updated

Author Message

Emmanuel Averty

Tuesday 25 January 2011 6:49:55 am

Hi,

I wrote two templates containing forms. The submission is made by calling a view named «action» of my own module. In the script of the module, I only return an array containing a template as «content» key and a «path» key with the correct informations. The templates returned are different for each action. This work fine, the called template makes what it has to do.

The only things that doesn't work is the top menu and the path. The first time I submit one of my forms, the top menu and the path are correct, but if I submit the second one, the top menu and the path shows informations of the first one (i.e selected node). If I clear the cache and re-submit my second form, everything is correct.

I made some debug in flat_top.tpl. I found that $pagedata.path_array is not updated. But I can't find why.

Can someone can help me ?

André R.

Tuesday 25 January 2011 10:38:37 am

pagelayout is cached with cache-blocks using among other things url as key, so use different url for different paths and it will work everywhere, otherwise you'll have to modify cache-key keys in pagelayout.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 10:18:32
Script start
Timing: Jan 18 2025 10:18:32
Module start 'layout'
Timing: Jan 18 2025 10:18:32
Module start 'content'
Timing: Jan 18 2025 10:18:33
Module end 'content'
Timing: Jan 18 2025 10:18:33
Script end

Main resources:

Total runtime1.0771 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.0071 587.9141152.6250
Module start 'layout' 0.00710.0038 740.539139.4531
Module start 'content' 0.01101.0647 779.9922522.7891
Module end 'content' 1.07560.0015 1,302.78138.1641
Script end 1.0771  1,310.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3096160.0002
Check MTime0.00130.1241160.0001
Mysql Total
Database connection0.00080.074810.0008
Mysqli_queries1.030295.6454540.0191
Looping result0.00050.0498520.0000
Template Total1.035396.120.5176
Template load0.00200.185220.0010
Template processing1.033295.925220.5166
Template load and register function0.00020.014510.0002
states
state_id_array0.00210.192310.0021
state_identifier_array0.00230.214520.0012
Override
Cache load0.00160.1490110.0001
Sytem overhead
Fetch class attribute can translate value0.00080.075320.0004
Fetch class attribute name0.00120.112630.0004
XML
Image XML parsing0.00070.067620.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00180.1701170.0001
String conversion0.00000.000740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs