Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.



Outputs the template for a toolbar.


{tool_bar name=name view=view [ parameter=value [...] ]}


name string The name of the toolbar. Yes.
view string The view mode that should be used. Yes.
parameter any Parameter(s) that will be passed to the included template. No.


This function can be used to display a toolbar template. The name parameter must be used to specify the name of the toolbar that should be show. The default/standard names are "top", "right" and "bottom" - custom names are also allowed. The "view" parameter can be used to specify a desired view mode ("line", "full", etc.). All other parameters (of any type) will be passed on and thus become available as template variables in the included template.


Example 1

{tool_bar name='top' view='line'}

Shows a toolbar called "top" using the "line" view mode.

Balazs Halasy (02/06/2004 11:16 am)

Balazs Halasy (28/04/2005 2:20 pm)


  • reference missing informations

    The tool_bar supports many views. Where do I find the list of supported views? I thought this was a reference....

    • Re: reference missing informations

      I guess the design/standard/templates/toolbar/full/ and line/ folders are good candidates.

      You should then create a design/[yourproject]/override/templates/toolbar/full (or line), folder and copy the views in there, in order to override the views' layout and behaviour.


      Now, what if you add a new view there? You surely can add it in the toolbar.ini settings, but, can you see it in the admin interface?