tool_bar
Summary
Outputs the template for a toolbar.
Usage
{tool_bar name=name view=view [ parameter=value [...] ]}Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| 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. |
Description
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.
Examples
Example 1
{tool_bar name='top' view='line'}Shows a toolbar called "top" using the "line" view mode.
Contributors
- Balazs Halasy Updated
- Daniele Commenter
- Nicolas Pastorino Commenter
- Brandon Chambers Commenter
Comments (3 historical)
Written by readers of the earlier documentation sites, kept as they were.
reference missing informations
Daniele ·
The tool_bar supports many views. Where do I find the list of supported views? I thought this was a reference....
tool_bar function configuration
Nicolas Pastorino ·
Configure your tool_bars in an override of settings/toolbar.ini, which you are to place in your siteaccess dir. The default ini file is coarsly self-understandable.
Re: tool_bar function configuration
Brandon Chambers ·
I think the documentation should be a bit more helpful in explaining where to find more pieces of information about topics.
Something as simple as: "For more information you can refer to the [insert_name].ini file located in the [insert directory path here] directory of Exponential" would help out a lot of people when they stumble onto a page like this and want to know more about it the topic.