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.