Custom toolbar bottom - I`m dense

Author Message

Vicente Olivan

Wednesday 08 November 2006 2:26:13 am

I need to create to toolbar_bottom with existing items different in the management toolbars, e.g.

<b>Legal policy – Credits – Help – etc</b>

How to built it?

Thanks

Jacobo Quiles

Thursday 09 November 2006 12:13:14 am

Hi!

Just create an override for yuor toolbar.ini file. Add something like this:

[Toolbar_bottom]
Tool[]=legal_policy
Tool[]=credits
Tool[]=help

Then just create these files (legal_policy.tpl, credits.tpl, help.tpl) using this structure so there won't be need of creating any override in your override.ini file:

design/yoursitedesignname/override/templates/toolbar/line/legal_policy.tpl
design/yoursitedesignname/override/templates/toolbar/line/credits.tpl
design/yoursitedesignname/override/templates/toolbar/line/help.tpl

Then for example in your legal_policy.tpl, if you want it to link to an existing object in your eZ Publish content tree:

{def $legal_policy_node=fetch('content','node',hash('node_id',100))} <-- assuming the legal policy article node_id is 100...
<a href={$legal_policy_node.url_alias|ezurl}>{$legal_policy_node.name|wash}</a>

and so on.

Microblau SL
http://www.microblau.net

Vicente Olivan

Thursday 09 November 2006 4:17:43 am

Hi, Jacobo

Very thanks, working

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 20:55:24
Script start
Timing: Jan 18 2025 20:55:24
Module start 'layout'
Timing: Jan 18 2025 20:55:24
Module start 'content'
Timing: Jan 18 2025 20:55:25
Module end 'content'
Timing: Jan 18 2025 20:55:25
Script end

Main resources:

Total runtime1.1694 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.9141152.6250
Module start 'layout' 0.00740.0045 740.539139.4609
Module start 'content' 0.01191.1461 780.0000541.6406
Module end 'content' 1.15800.0114 1,321.640612.4688
Script end 1.1694  1,334.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3295160.0002
Check MTime0.00160.1380160.0001
Mysql Total
Database connection0.00080.065710.0008
Mysqli_queries1.096193.7278570.0192
Looping result0.00050.0466550.0000
Template Total1.122196.020.5610
Template load0.01191.016520.0059
Template processing1.110294.930220.5551
Template load and register function0.00010.009910.0001
states
state_id_array0.00080.070310.0008
state_identifier_array0.00140.116420.0007
Override
Cache load0.00190.1645280.0001
Sytem overhead
Fetch class attribute can translate value0.00060.050420.0003
Fetch class attribute name0.00180.152450.0004
XML
Image XML parsing0.00380.326920.0019
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00620.5284230.0003
String conversion0.00000.000840.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
3content/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: 6

Time used to render debug report: 0.0002 secs