Contact us - which template(s) to override?

Author Message

Trond Hjelmaas

Sunday 16 January 2005 1:21:31 pm

Hi,

I have generated a site from the "plain" template. I included "Contact us" option and would like to use that code.

My initial problem is that I cannot find out what template is used to display the "Collected Information" page (displayed after filling out "contact us" details and pressing send-button).

I am a beginner and find it timeconsuming to get my head on top of <i>which template is used when</i>. I found the override in the node/view/full for the "feedback_form_full.tpl" but I don't know what template to override to change the text and fields in "Collected INformation" page.

<b>Question 1 </b>- Does anyone know about a good tutorial (or something) that makes sense describing how to find out what templates are used at what time? Or just tell me here :)

<b>Question 2 </b>- Can someone tell me what template to override to define my own "Collected information" page? And preferably tell give me a hint of how?

Help much appreciated!

Best regards, Trond

Kristian Hole

Monday 17 January 2005 8:58:37 am

To discover which template eZ publish uses. Enable debugging in settings/override/site.ini.append.php and add the following:

[DebugSettings]
Debug=enabled

[TemplateSettings]
Debug=enabled
ShowXHTMLCode=enabled <-- disable this to get the info as html comments

Rembemer to clear the cache.

This is also good when developing:
http://ez.no/community/forum/setup_design/template_caching_problems/re_template_caching_problems__4

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

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 04:35:39
Script start
Timing: Jan 19 2025 04:35:39
Module start 'layout'
Timing: Jan 19 2025 04:35:39
Module start 'content'
Timing: Jan 19 2025 04:35:40
Module end 'content'
Timing: Jan 19 2025 04:35:40
Script end

Main resources:

Total runtime0.6715 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 590.7031152.6406
Module start 'layout' 0.00610.0032 743.343839.4766
Module start 'content' 0.00920.6608 782.8203522.9297
Module end 'content' 0.67000.0015 1,305.75008.1250
Script end 0.6714  1,313.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.6048160.0003
Check MTime0.00210.3126160.0001
Mysql Total
Database connection0.00080.126010.0008
Mysqli_queries0.621892.6041540.0115
Looping result0.00060.0954520.0000
Template Total0.633194.320.3166
Template load0.00200.298820.0010
Template processing0.631193.987920.3156
Template load and register function0.00020.036010.0002
states
state_id_array0.00120.175010.0012
state_identifier_array0.00180.266220.0009
Override
Cache load0.00160.2432180.0001
Sytem overhead
Fetch class attribute can translate value0.00080.115520.0004
Fetch class attribute name0.00230.336330.0008
XML
Image XML parsing0.00070.098720.0003
class_abstraction
Instantiating content class attribute0.00000.002030.0000
General
dbfile0.00210.3160160.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs