Forums / Developer / Content structure menu issue

Content structure menu issue

Author Message

Ivan Švogor

Monday 15 November 2010 12:48:26 am

Hello,

I've created few new classes and added them to the menu.ini.append.php to [MenuContentSettings] and
LeftIdentifierList[], also to the contentstructuremenu.ini.append.php :

[TreeMenu]
Dynamic=
enabledShowClasses[]
....my classes...

Here is the issue. I the administrator interface, I get those classes in the Content structure tree, but when I click on Home (the root node) I get nothing. What else do I need to do?

Gaetano Giunta

Monday 15 November 2010 1:15:04 am

1. You always need to clear all caches once to make the left menu refresh for good.

2. Maybe you need to remove the reset of the array with the list of shown classes, so that those that were there in the beginning are still taken into account. Or make sure the class of the root node is in there

Principal Consultant International Business
Member of the Community Project Board

Ivan Švogor

Monday 15 November 2010 1:20:45 am

 

Hello,

Thank you for your answer Gaetano...

2. Maybe you need to remove the reset of the array -> I don't know what do you mean by that.. Can you clarify?

Also I've added all the classes in the:

contentstructuremenu.ini.append.php

But now when I press Folder, Frontpage or and built in classes, I don't get the content on the right.

Gaetano Giunta

Monday 15 November 2010 3:27:03 am

About resetting an array-valued setting:

when you do

ShowClasses[]
ShowClasses[]=abc

in your override.ini, you are in fact eliminating all the values from the array that might have been put in there by siteaccess or extension configs.

Otoh when you do

ShowClasses[]=abc

you will only be adding some stuff.

As always, Setup/Ini settings in the Admin Interface is your friend to find out who puts values in an array, and the order in which the values get added

Principal Consultant International Business
Member of the Community Project Board

Ivan Švogor

Monday 15 November 2010 4:22:05 am

Hello again,

I've figured out where was the error. In my extension I had override.ini file that was identical to that one from ezwebin, and also in my site access I had another one. This idetical one remained for some test purposes and I forgot to delete it. So, I did and it's all fine. But, Gaetano thank you for you answer, I already see where I can use array reset :)

Thanks, cheers

eZ debug

Timing: Jan 18 2025 10:22:13
Script start
Timing: Jan 18 2025 10:22:13
Module start 'content'
Timing: Jan 18 2025 10:22:14
Module end 'content'
Timing: Jan 18 2025 10:22:14
Script end

Main resources:

Total runtime1.0897 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 587.7109180.8438
Module start 'content' 0.00940.9154 768.5547567.6172
Module end 'content' 0.92470.1650 1,336.1719337.3750
Script end 1.0897  1,673.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.4520210.0002
Check MTime0.00190.1749210.0001
Mysql Total
Database connection0.00210.190110.0021
Mysqli_queries1.005992.30822000.0050
Looping result0.00200.18811980.0000
Template Total1.051496.520.5257
Template load0.00330.300520.0016
Template processing1.048296.183320.5241
Template load and register function0.00030.023510.0003
states
state_id_array0.00230.211010.0023
state_identifier_array0.00100.090320.0005
Override
Cache load0.00290.2649400.0001
Sytem overhead
Fetch class attribute can translate value0.00150.136230.0005
Fetch class attribute name0.00120.112760.0002
XML
Image XML parsing0.00090.083830.0003
class_abstraction
Instantiating content class attribute0.00010.004770.0000
General
dbfile0.00220.2015270.0001
String conversion0.00000.000930.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs