Forums / Setup & design / Toolbar problem

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.

eZ debug

Timing: Jan 18 2025 16:04:24
Script start
Timing: Jan 18 2025 16:04:24
Module start 'content'
Timing: Jan 18 2025 16:04:24
Module end 'content'
Timing: Jan 18 2025 16:04:24
Script end

Main resources:

Total runtime0.1284 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0313180.8516
Module start 'content' 0.00480.0043 769.882893.8203
Module end 'content' 0.00910.1192 863.7031524.2266
Script end 0.1283  1,387.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00292.2672200.0001
Check MTime0.00110.8877200.0001
Mysql Total
Database connection0.00060.469710.0006
Mysqli_queries0.090770.62581410.0006
Looping result0.00110.82481390.0000
Template Total0.118992.610.1189
Template load0.00060.473610.0006
Template processing0.118392.153610.1183
Override
Cache load0.00040.323310.0004
Sytem overhead
Fetch class attribute can translate value0.00080.635510.0008
XML
Image XML parsing0.00020.176810.0002
General
dbfile0.00393.0759200.0002
String conversion0.00000.003930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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