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.