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.

eZ debug

Timing: Jan 19 2025 15:26:05
Script start
Timing: Jan 19 2025 15:26:05
Module start 'layout'
Timing: Jan 19 2025 15:26:05
Module start 'content'
Timing: Jan 19 2025 15:26:05
Module end 'content'
Timing: Jan 19 2025 15:26:05
Script end

Main resources:

Total runtime0.0122 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 589.2734152.6406
Module start 'layout' 0.00400.0022 741.914139.4766
Module start 'content' 0.00630.0041 781.390689.4922
Module end 'content' 0.01040.0019 870.882830.3047
Script end 0.0122  901.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002217.8416140.0002
Check MTime0.00108.2931140.0001
Mysql Total
Database connection0.00054.106710.0005
Mysqli_queries0.002116.849030.0007
Looping result0.00000.089510.0000
Template Total0.001512.610.0015
Template load0.00086.718610.0008
Template processing0.00075.877810.0007
Override
Cache load0.00064.978610.0006
General
dbfile0.00021.722580.0000
String conversion0.00000.042840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs