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.

eZ debug

Timing: Jan 31 2025 03:45:28
Script start
Timing: Jan 31 2025 03:45:28
Module start 'layout'
Timing: Jan 31 2025 03:45:28
Module start 'content'
Timing: Jan 31 2025 03:45:28
Module end 'content'
Timing: Jan 31 2025 03:45:28
Script end

Main resources:

Total runtime0.0216 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0078151.1953
Module start 'layout' 0.00520.0036 739.2031220.6719
Module start 'content' 0.00890.0113 959.8750997.7578
Module end 'content' 0.02020.0014 1,957.632833.9922
Script end 0.0216  1,991.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.9281140.0002
Check MTime0.00104.7474140.0001
Mysql Total
Database connection0.00052.184010.0005
Mysqli_queries0.002410.964030.0008
Looping result0.00000.050710.0000
Template Total0.00104.510.0010
Template load0.00073.442510.0007
Template processing0.00021.055610.0002
Override
Cache load0.00052.331810.0005
General
dbfile0.00021.147180.0000
String conversion0.00000.022140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs