ezwebin - top menu set ..?

Author Message

Denitsa M.

Thursday 01 July 2010 1:04:00 am

Hi,

some time ago, when using persistent variable to set menus in frontend I noticed the following: when using ezpagedata_set(), the top menu cannot be set (remains at flat-top default value from settings), and using persistent variable array does not always work, and also, using both in the same page do not work either (persistent for top menu and operator for the rest). So, we decided on using the operator only, and check that problem is denying us the change of top menu template. I found that being unable to change the top menu with ezpagedata_set() operator is caused by code in ezpagedata.php script in ezwebin extension (autoloads/ezpagedata.php) at [299], where we have $pageData['top_menu'] = $persistent['top_menu']; instead of $pageData['top_menu'] = $parameters['top_menu']; as we have in code for the other pagedata "parameters" (which thus are settable by the operator).

Is this difference on purpose done, and if yes - why? - or is just a miss in code? Change of $persistent with $parameters is making perfect sense and operator successfully sets the top_menu variable to my desired string (or array if you fix the topmenu template to be as left/extra menu templates to make usage of more than one menu listed in array).

Thanks,

Deni

Iguana IT - http://www.iguanait.com

André R.

Thursday 01 July 2010 1:45:01 am

http://issues.ez.no/16955

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

Denitsa M.

Thursday 01 July 2010 6:54:51 am

Thanks, André! Much appreciated!

Deni

Iguana IT - http://www.iguanait.com

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

Main resources:

Total runtime0.0180 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0078152.6094
Module start 'layout' 0.00480.0036 741.617239.4141
Module start 'content' 0.00840.0073 781.031389.4141
Module end 'content' 0.01570.0022 870.445334.3047
Script end 0.0180  904.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.9294140.0002
Check MTime0.00116.2435140.0001
Mysql Total
Database connection0.00073.916510.0007
Mysqli_queries0.002815.371830.0009
Looping result0.00000.149710.0000
Template Total0.00179.710.0017
Template load0.00105.593210.0010
Template processing0.00074.027710.0007
Override
Cache load0.00073.911210.0007
General
dbfile0.00073.727180.0001
String conversion0.00000.050340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs