Toolbar Overhaul Needed

Author Message

Alex Jones

Friday 27 August 2004 10:38:28 am

For the first time, I am working on a site that uses toolbars, and I must say that I am getting more frustrated by the hour. While the functionality and concept are great, the implementation from a front-end/design standpoint needs fundamental change. Markup should not be placed in the actual function, it should be left entirely to the developer to define. At the moment, I am stuck in an odd spot, I have to make a decision:
1. Use the current implementation which will
- force me to change my valid and clean markup
- slow down future redesigns and design tweaks as well as code maintenance
- slow page download due to unneeded markup (for every page on the site, as it won't cache client-side)
- increase bandwidth usage (again, for every page of the site)

2. Hack eztemplatetoolbarfunction.php which will
- complicate further upgrades
- confuse/frustrate future developers (possible even me) down the line, as it isn't a common change

3. Not use the toolbars at all
- cuts down on control from the admin site
- require that a developer make changes when new pieces need to be added to a toolbar
- just have to re-instate the code when/if this is fixed in the future

Please please please fix this. Control over output is one the most important aspects of eZ publish, and the entire reason that you have set up such a great template structure. There is no valid reason for this aspect of the system to not be consistent in its usage of templates.

I have already reported a bug: http://ez.no/community/bug_reports/toolbar_list_items_should_be_in_template_not_hardcoded and I do consider this a bug, because the system doesn't work the way it should when compared to the rest of eZ publish.

<i>[Added] There appears to be another thread addressing this as well: http://ez.no/community/forum/developer/curious_new_template_operator_tool_bar</i>

eZ publish is a great system, that works beautifully for the most part, which is what makes situations like this all the more frustrating.

Thank you,

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 31 2025 03:39:44
Script start
Timing: Jan 31 2025 03:39:44
Module start 'layout'
Timing: Jan 31 2025 03:39:44
Module start 'content'
Timing: Jan 31 2025 03:39:45
Module end 'content'
Timing: Jan 31 2025 03:39:45
Script end

Main resources:

Total runtime0.9613 sec
Peak memory usage8,192.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.1250151.2109
Module start 'layout' 0.00780.0049 739.3359220.6875
Module start 'content' 0.01270.9479 960.02344,379.4766
Module end 'content' 0.96060.0007 5,339.50007.8594
Script end 0.9613  5,347.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3759160.0002
Check MTime0.00140.1407160.0001
Mysql Total
Database connection0.00090.089410.0009
Mysqli_queries0.876591.1792460.0191
Looping result0.00050.0533440.0000
Template Total0.870590.520.4352
Template load0.00230.239220.0011
Template processing0.868290.308820.4341
Template load and register function0.00140.146910.0014
states
state_id_array0.00480.500810.0048
state_identifier_array0.00180.184520.0009
Override
Cache load0.00180.1922220.0001
Sytem overhead
Fetch class attribute can translate value0.00170.174310.0017
Fetch class attribute name0.00190.199020.0010
XML
Image XML parsing0.00060.062610.0006
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00100.0995160.0001
String conversion0.00010.008940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs