Share » Forums » Setup & design » create custom Tools for Tool-bars -...

create custom Tools for Tool-bars - How ?

create custom Tools for Tool-bars - How ?

Thursday 11 May 2006 3:51:41 am - 1 reply

Modified on Thursday 11 May 2006 3:53:21 am by Alexandre Cunha

Author Message

Kristof Coomans

Thursday 11 May 2006 6:45:46 am

You can make your own toolbar. Suppose it is called mytool:

In settings/override/toolbar.ini.apppend(.php):

[Tool]
AvailableToolArray[]=mytool

[Tool_mytool]

Create design/[yourdesign]/templates/toolbar/full/mytool.tpl and design/[yourdesign]/templates/toolbar/line/mytool.tpl with the desired template code.

Under [Tool_mytool] you can have as many toolbar configuration options as you want, the value specified for it in the INI file will be the option's title in the interface of the setup/toolbar view. The option's value entered in the interface will be available in the toolbar's template with the same name.

You can take the INI settings and templates of other toolbars as an example.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu