websitetoolbar.tpl custom template include question

Author Message

Russell Michell

Thursday 01 July 2010 2:44:09 pm

Hi folks,

I'm developing an extension and have used the CustomTemplateList and IncludeInView settings in an override for websitetoolbar.ini.append.php.

These settings allow you to include custom templates from your own extension inside ezwebin's websitetoolbar.tpl - however, I couldn't figure out why my custom template - an HTML form - wasn't submitting correctly.

It wasn't submitting because the place in websitetoolbar.tpl where custom templates are included is in the middle of a form!

So I resorted to "manually" adding an include statement in an override for websitetoolbar.tpl to make my extension's form work.

I'd like to release this extension to the community soon but am not keen on either including an override for websitetoolbar.tpl for obvious reasons, or instructions on how to make the custom template work by editing existing copies of it - which seems just kinda clunky.

Can I propose that custom templates to be included in websitetoolbar.tpl via the above ini config declarations, are moved outside of existing <form> elements?

Or is there a reason why they were placed there?

Thanks folks :-)
Russ

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

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 18 2025 05:12:04
Script start
Timing: Jan 18 2025 05:12:04
Module start 'layout'
Timing: Jan 18 2025 05:12:04
Module start 'content'
Timing: Jan 18 2025 05:12:05
Module end 'content'
Timing: Jan 18 2025 05:12:05
Script end

Main resources:

Total runtime0.7241 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0625152.6406
Module start 'layout' 0.00470.0027 740.703139.4766
Module start 'content' 0.00740.7153 780.1797476.5469
Module end 'content' 0.72270.0014 1,256.72668.1250
Script end 0.7241  1,264.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4491160.0002
Check MTime0.00140.1913160.0001
Mysql Total
Database connection0.00050.068610.0005
Mysqli_queries0.674993.2034460.0147
Looping result0.00040.0613440.0000
Template Total0.695196.020.3475
Template load0.00200.273120.0010
Template processing0.693195.713520.3465
Template load and register function0.00010.015310.0001
states
state_id_array0.00090.121110.0009
state_identifier_array0.00170.234920.0009
Override
Cache load0.00160.2220240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.086710.0006
Fetch class attribute name0.00090.119220.0004
XML
Image XML parsing0.00060.077210.0006
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00100.1321160.0001
String conversion0.00000.001340.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
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs