create custom Tools for Tool-bars - How ?

Author Message

Alexandre Cunha

Thursday 11 May 2006 3:51:41 am

Hello,

I need create a special tool-bar - mini_menu toolbar - this menu must have links to "Site Map" (content/view/sitemap/), "disclaimer" (point to a article or folder), "terms of service" (points to a article or folder) - only links to internal content.
The existing tool "link" is usefull only for external links or complete URLs.

After some search n documentaton and forum, I dont find useful informaton about create tools.

Can someone point me into right direction ?

thanks for your help

http://AlexandreCunha.com

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.