Feedback form template

Author Message

David Santiso

Saturday 25 December 2010 5:14:22 am

Hi,

I added new fields in the class "Feedback form", but when I create a feedback on anysection of the front, new fields are not shown. I think I have to modify the template of this type of content.

Anyone know the exact path of this template? Or I have to create a new one? If so, how?

Thanks,

David

Nicolas Pastorino

Sunday 26 December 2010 12:44:38 pm

Hi David,

One generic way of knowing what template is called is to turn your eZ Publish into development mode. Here are the few settings you should modify in site.ini.append.php, before clearing all caches and reloading the page showing Feedback form object :

[DebugSettings]
DebugOutput=enabled

[TemplateSettings]
DevelopmentMode=enabled
Debug=enabled
ShowXHTMLCode=disabled
ShowUsedTemplates=enabled

[ContentSettings]
ViewCaching=disabled

Then take a look at the bottom of the page :)

Let us know if you are having any issue,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

David Santiso

Monday 27 December 2010 8:55:04 am

Thank you very much.

For the present, I think that this might be helpful. I have already found the template that I needed.

Anyway, I will probably write to you again if I have more questions ;)

Merry Christmas and a Happy New Year.

Nicolas Pastorino

Monday 27 December 2010 10:01:27 am

"

Anyway, I will probably write to you again if I have more questions ;)

"

Please do :)

"

Merry Christmas and a Happy New Year.

"

To you too !

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

David Santiso

Wednesday 29 December 2010 4:46:04 am

Hello,

I'm writing to you again as I have new doubts.

I've copied the class "feedbak form" from the administration section so as to both modify it my way and keep the original untouched. It requires the node's template as it is a new class.

I'd like to know how I can create a new template for the copy of the "feedback form" class.

Thank you again,

David

Nicolas Pastorino

Saturday 01 January 2011 6:14:11 am

Hi David,

As a small educative starter, i'd recommend reading this short description of the template override system :
http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Templates/The-template-override-system

Concerning your specific problem, you will need to open your front-end siteaccess' override.ini.append.php file, spot the override rule related to the feedback_form content class, copy the whole block and alter the 'Match' condition by replacing the original content class identifier by the new one. The new content class identifier can be found in the back-office, where you duplicated the feedback form class : Setup > Classes.

Let us know how things go,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

David Santiso

Sunday 02 January 2011 6:57:35 am

Thanks,

I had already read the document.

I copied the template and added the new lines in override as explained in the post "New Template", but still see the default template.

I have done anything wrong, but not what.

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

Main resources:

Total runtime1.0626 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.9063152.6250
Module start 'layout' 0.00540.0027 740.531339.4375
Module start 'content' 0.00811.0529 779.9688587.8438
Module end 'content' 1.06100.0016 1,367.812516.1875
Script end 1.0625  1,384.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3063160.0002
Check MTime0.00140.1295160.0001
Mysql Total
Database connection0.00070.062410.0007
Mysqli_queries0.993193.4625690.0144
Looping result0.00070.0655670.0000
Template Total1.023996.420.5120
Template load0.00150.144420.0008
Template processing1.022496.215520.5112
Template load and register function0.00020.014610.0002
states
state_id_array0.00140.136310.0014
state_identifier_array0.00210.197520.0010
Override
Cache load0.00140.1280500.0000
Sytem overhead
Fetch class attribute can translate value0.00070.062220.0003
Fetch class attribute name0.00120.110580.0001
XML
Image XML parsing0.00070.065320.0003
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00410.3903160.0003
String conversion0.00000.000940.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs