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.