Content structure: Containers don't expand

Author Message

Arno Lehmann

Monday 14 January 2008 3:26:17 am

Hi,

I have the following situation:

eZ Publish 4
In the admin panels content structure tree view, I see the root node of the tree and the firts level children of it, but neither can I collapse / expand the root node, nor its children.

Until recently, I saw the +/- icons in front of the root node and the pre-defined container types like Folder and Frontpage, but no more now.

I'm not aware of any changes relating to the settings regarding this. I did create some new classes plus templates which I also use as first level contents objects, and these were not shown with +/- icon from the start. So I looked into the relevant template and found that
1) I don't completely understand it, and
2) if a node has children, it should be expandable.

Now, I do have children in these nodes which are shown in the "Sub items" section of the objects, I can access and edit these objects, but I'd really like them to be expandable in the contens structure tree.

Oh, and I did clear all the caches, but that didn't do any good.

Any hints?

Thanks in advance,

Arno

André R.

Monday 14 January 2008 3:37:12 am

If you use a browser that has a javascript debugger / console, you probably see a javascript error saying something like 'ClassId' not defined, then you need to clear some cache (template / template cache / contenttree menu / content).

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

Arno Lehmann

Monday 14 January 2008 3:47:05 am

Thanks for the idea, but unfortunately no useful result... it only complains about an unknown css property.

But I noticed that your site's css has even more problems :-)

Arno

André R.

Monday 14 January 2008 4:35:18 am

my site? your talking about your site running the eZ Publish admin design?? :)

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

Arno Lehmann

Monday 14 January 2008 4:43:54 am

No, in this case I'm referring to the css used on ez.no, i.e. these forums :-)

Like this one:

Warnung: Fehler beim Verarbeiten des Wertes für Eigenschaft 'white-space'.  Deklaration ignoriert.
Quelldatei: http://ez.no/extension/ezno2005/design/ezno2005/stylesheets/classes.css
Zeile: 1625

I guess if I had access to your designs I wouldn't have had to struggle through creating my pwn templates, etc ;-)

Arno

Arno Lehmann

Friday 18 January 2008 3:22:05 am

Any ideas regarding the original problem, anyone?

Luke Barton

Sunday 20 January 2008 6:35:04 pm

Arno,

Some things to try when debugging:

1. Turn on debug output for the admin site access (site.ini.append.php). Enabled TemplateDebug and ShowXHTML code. Enable ShowUsedTemplates (this will provide a list of used templates at the bottom of the page.)

http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/debugsettings
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/site_ini/templatesettings

2. Then, view the source code. You should see what templates are being called at what point in the code. This will help you learn your way around a bit.

3. Review ini settings, specifically these (contentstructuremenu.ini):

http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/contentstructuremenu_ini
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/configuration_files/contentstructuremenu_ini/treemenu/showclasses

4. A good source of ini documentation can be found in the comments in the default ini files in your installation (/settings/some_ini_file.ini).

5. TreeMenu stuff:
http://ez.no/developer/forum/developer/ajax_treemenu_ezodcsm_extension_discussion

Good luck.

-Luke

Arno Lehmann

Friday 07 March 2008 3:11:01 am

Hi again,

sorry this took me song long - I was quite busy with more important stuff, unfortunately.

Ok... thanks for the suggestion, Luke.

This is what I did:

The template looks ok - it's the one provided by ez. I verified that, on another site operated by the same apache / php setup, the contents tree worked as expected. A diff between the files used - i.e. the contents of the design/standard/templates/contentstructuremenu/ directories - revealed the files are identical.

I had a look both at the generated HTML output and the template files themselves, but must admit I don't understand all I saw. At least the HTML and the template file seem consistent, so I'm quite sure I use the correct template.

The contentstructuremenu.ini has all the classes I use, though currently I'm a bit unsure if the site overrides are correct in all cases. As I'm only seeing ezwebin_site_admin in the URL, I'm quite sure the corresponding ini file is applied, and that one looks ok to me. At least it holds all the classes we use.

Interestingly, switching to the JavaScript-driven dynamic menu now works, so I'll leave that on and can reasonably work with it.

Thank you all for your support, and if someone wants to dive into it I'll happily provide more information!

Arno

David P

Monday 21 July 2008 2:12:50 am

I've the same (?) "bug" in all my Ez-publish 4.0.
Did you resolved this bug ?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.