3.4 - how to make right hand toolbar content section dependent?

Author Message

steve walker

Monday 09 August 2004 5:30:29 am

Bard,

Thanks for your help - I've finally got this working.

So the fix is (as you said above) to explicitly state each section rather than using the

{case}
    <p>Show this if the page is in a section that doesn't match any of the above.</p>
  {/case}

as an 'or' operator.

Cheers for helping me out with this.

Steve.

http://www.oneworldmarket.co.uk

Bård Farstad

Monday 09 August 2004 5:48:50 am

Steve,

great that it works now. Glad to be helping out.

--bård

Documentation: http://ez.no/doc

Andrew Wigglesworth

Sunday 05 December 2004 6:39:23 am

I've found this thread very useful and I just want to add something.

You can change your toolbars not just by section, but also by node or class. For example you could have a different toolbar according to whether an object is an article, poll, folder etc.

If your article class is 2, then the following would be a basis for creating a tollbar option that just shows up in articles.

{switch match=$DesignKeys:used.class}
{case match=2}
This is an article.
{/case}
{case}
This is not an article.
{/case}
{/switch}

This extension of the principle is probably obvious to all you "power users" of eZ publish, but I thought that people might appreciate me pointing this out.

Combined with the new administration setup on eZpublish 3.5, this is very powerful.

Oree Eyo

Monday 08 August 2005 1:29:12 pm

I was wondering about the same issue, until i found this tread.
I think that the administration panel should include a module that assign toolbars to nodes..
It's a must!

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 18 2025 11:28:19
Script start
Timing: Jan 18 2025 11:28:19
Module start 'layout'
Timing: Jan 18 2025 11:28:19
Module start 'content'
Timing: Jan 18 2025 11:28:19
Module end 'content'
Timing: Jan 18 2025 11:28:19
Script end

Main resources:

Total runtime0.6983 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.7891152.6563
Module start 'layout' 0.00440.0023 741.445339.9688
Module start 'content' 0.00670.6900 781.4141608.5938
Module end 'content' 0.69670.0016 1,390.007814.5391
Script end 0.6983  1,404.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4310160.0002
Check MTime0.00120.1710160.0001
Mysql Total
Database connection0.00070.106610.0007
Mysqli_queries0.628489.9803630.0100
Looping result0.00060.0931610.0000
Template Total0.673596.420.3368
Template load0.00190.276820.0010
Template processing0.671696.165020.3358
Template load and register function0.00020.032110.0002
states
state_id_array0.00080.112810.0008
state_identifier_array0.00060.090220.0003
Override
Cache load0.00160.2357340.0000
Sytem overhead
Fetch class attribute can translate value0.00110.151440.0003
Fetch class attribute name0.00120.168460.0002
XML
Image XML parsing0.00891.270840.0022
class_abstraction
Instantiating content class attribute0.00000.002360.0000
General
dbfile0.00861.2244230.0004
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs