Toolbar elements on a per contentclass basis?

Author Message

Gabriel Ambuehl

Monday 14 February 2005 6:39:05 am

Is there any mechanism for toolbar elements to be shown only for specific content classes or do I need to implement that myself?

Essentially, I want to display some content (depending on the class in question) in the right toolbar. If it's possible to somehow display some block from the view/full main template over there, that would do the job as well. But I couldn't get the CSS to render there from inside the main content block.

Visit http://triligon.org

Tom Couwberghs

Thursday 17 February 2005 4:11:56 am

There is no standard mechanism offered to do this. But the template code to do is is easy.
If you need more directions just ask.

Gabriel Ambuehl

Thursday 17 February 2005 4:54:03 am

Well it's easy to do (add classidentifiers to the toolbar element and check whether current class is member of that). But look at http://ez.no/community/forum/developer/toolbar_caching_trouble
for the trouble I got into...

Visit http://triligon.org

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 05:33:19
Script start
Timing: Jan 31 2025 05:33:19
Module start 'layout'
Timing: Jan 31 2025 05:33:19
Module start 'content'
Timing: Jan 31 2025 05:33:19
Module end 'content'
Timing: Jan 31 2025 05:33:19
Script end

Main resources:

Total runtime0.0154 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.2656151.2266
Module start 'layout' 0.00550.0023 739.492236.6797
Module start 'content' 0.00780.0061 776.171990.1875
Module end 'content' 0.01390.0014 866.359429.9922
Script end 0.0153  896.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002214.4469140.0002
Check MTime0.00106.6020140.0001
Mysql Total
Database connection0.00095.863510.0009
Mysqli_queries0.002415.436830.0008
Looping result0.00000.085310.0000
Template Total0.00116.810.0011
Template load0.00085.283210.0008
Template processing0.00021.528310.0002
Override
Cache load0.00053.294010.0005
General
dbfile0.002013.120280.0003
String conversion0.00000.045040.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