Forums / Developer / Feedback form template

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.

eZ debug

Timing: Jan 18 2025 02:54:42
Script start
Timing: Jan 18 2025 02:54:42
Module start 'content'
Timing: Jan 18 2025 02:54:43
Module end 'content'
Timing: Jan 18 2025 02:54:43
Script end

Main resources:

Total runtime1.0951 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.8203180.8516
Module start 'content' 0.00710.9609 769.6719592.9219
Module end 'content' 0.96800.1270 1,362.5938341.0859
Script end 1.0950  1,703.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4123210.0002
Check MTime0.00160.1501210.0001
Mysql Total
Database connection0.00110.104710.0011
Mysqli_queries0.980989.57402060.0048
Looping result0.00230.21302040.0000
Template Total1.036094.620.5180
Template load0.00260.235320.0013
Template processing1.033494.363620.5167
Template load and register function0.00020.014310.0002
states
state_id_array0.00120.113710.0012
state_identifier_array0.00190.175920.0010
Override
Cache load0.00230.2094500.0000
Sytem overhead
Fetch class attribute can translate value0.00140.130930.0005
Fetch class attribute name0.00160.146980.0002
XML
Image XML parsing0.00110.101530.0004
class_abstraction
Instantiating content class attribute0.00000.0026100.0000
General
dbfile0.02702.4699270.0010
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 31
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs