Toolbar problem

Author Message

Aleksandar Adam

Saturday 07 January 2006 4:17:28 pm

My objects are organised like this:

Folder
|- Object 1
| -Object 2
|- Object 3
|- Object 4
:
|-Object n

and they are of the same class. I want to make right toolbar which shows some object attributes in right toolbar and some other attributes in the main content in the same time of the same object. My right toolbar I have set property "Show in subtree" to "Folder" (I don't know if it correct)

I used the following code in my right toolbar template, and in the template which is in main content:

{$node.object.data_map.MY_ATTRIB_N.contentclass_attribute.name|wash}

Everything should look like this:

Main content:........................ Right toolbar:
Object1.MY_ATTRIB_1.......... Object1.MY_ATTRIB_4
Object1.MY_ATTRIB_2.......... Object1.MY_ATTRIB_5
Object1.MY_ATTRIB_3

I have the following trouble:

The content (object attributes) shows first time when I visit the page. They shows both in the main content and in the right toolbar.

But when I press "reload" button object attributes shows only in main content but not in the right toolbar. I tried to test $node.node_id value in the right toolbar after I pressed the reload button but there is no value. It shows only value when the whole page is visited the first time.

I have some logical error but I can't find it.

Any answer is appreciated

Niklas Gunnäs

Monday 16 January 2006 12:50:54 pm

Hi Aleksandar

Dont know if this could help. Looks like same problem....

http://ez.no/community/forum/developer/custom_tool_trouble/re_custom_tool_trouble

or/and

http://ez.no/community/forum/setup_design/right_sidebar_context_infos_dependent_how_to/re_right_sidebar_context_infos_dependent_how_to__20

Aleksandar Adam

Tuesday 17 January 2006 2:44:12 pm

Thanks Niklas, your answer really helped me.

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