Forums / Extensions / ezwebin - top menu set ..?

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

eZ debug

Timing: Jan 17 2025 22:57:06
Script start
Timing: Jan 17 2025 22:57:06
Module start 'content'
Timing: Jan 17 2025 22:57:07
Module end 'content'
Timing: Jan 17 2025 22:57:08
Script end

Main resources:

Total runtime1.3195 sec
Peak memory usage4,096.0000 KB
Database Queries195

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.6094180.8438
Module start 'content' 0.00731.1430 768.4531540.8203
Module end 'content' 1.15040.1690 1,309.2734332.7656
Script end 1.3194  1,642.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3024210.0002
Check MTime0.00140.1098210.0001
Mysql Total
Database connection0.00080.060810.0008
Mysqli_queries1.242794.17921950.0064
Looping result0.00200.15281930.0000
Template Total1.275896.720.6379
Template load0.00240.178620.0012
Template processing1.273496.510320.6367
Template load and register function0.00050.038610.0005
states
state_id_array0.00240.180410.0024
state_identifier_array0.00300.224920.0015
Override
Cache load0.00190.1444190.0001
Sytem overhead
Fetch class attribute can translate value0.00130.098430.0004
Fetch class attribute name0.00150.114440.0004
XML
Image XML parsing0.00090.068430.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00540.4083280.0002
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs