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

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

Main resources:

Total runtime0.9208 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9141152.6250
Module start 'layout' 0.00690.0032 740.539139.4531
Module start 'content' 0.01010.9092 779.9922562.5391
Module end 'content' 0.91930.0015 1,342.531312.1641
Script end 0.9208  1,354.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3884160.0002
Check MTime0.00140.1528160.0001
Mysql Total
Database connection0.00130.142710.0013
Mysqli_queries0.860593.4508630.0137
Looping result0.00060.0674610.0000
Template Total0.890396.720.4452
Template load0.00210.226020.0010
Template processing0.888296.457620.4441
Template load and register function0.00020.019910.0002
states
state_id_array0.00070.081310.0007
state_identifier_array0.00150.165820.0008
Override
Cache load0.00180.1928400.0000
Sytem overhead
Fetch class attribute can translate value0.00090.098320.0005
Fetch class attribute name0.00170.188560.0003
XML
Image XML parsing0.00060.069520.0003
class_abstraction
Instantiating content class attribute0.00000.001770.0000
General
dbfile0.00160.1693160.0001
String conversion0.00000.001140.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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