This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Content structure menu issue
expandshrink

Content structure menu issue

Content structure menu issue

Monday 15 November 2010 9:48:26 am - 4 replies

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?

Monday 15 November 2010 10: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

Monday 15 November 2010 10: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.

Monday 15 November 2010 12:27:03 pm

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

Monday 15 November 2010 1:22:05 pm

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 happy.gif Emoticon

Thanks, cheers

Modified on Monday 15 November 2010 1:28:55 pm by Ivan Švogor

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from