Forums / Setup & design / feedback_form trouble with ezp 4.0

feedback_form trouble with ezp 4.0

Author Message

Pascal France

Friday 11 January 2008 7:01:25 pm

Hi,

It seems the design/standard/templates/content/collectedinfo/form.tpl template is not called/used with Plain eZ Publish 4 site type.

Here is the "Contact form" included in a from scratch Website site type installation (template debug output enabled):

http://www.linuxorable.fr/website4/index.php/fre/Company/Contact

and as we can see, once the message is sent, the system displays the content of the template:
extension/ezwebin/design/ezwebin/templates/content/collectedinfo/form.tpl

and a collected object is well created in the Setup tab.

Now, here is a from scratch Plain site type installation (template debug output enabled):
http://www.linuxorable.fr/plain4.0/index.php/plain/Formulaire-de-contact

This time, if we send a message the system never displays the content of the template:
design/plain_site/templates/content/collectedinfo/form.tpl
and no collected object is created.

I spent a whole day to seek a solution but to no avail
I've compared the website design templates and plain_site design templates but I don't see anything which can explain the problem.
Maybe something in kernel/content/module.php or kernel/content/collectedinfo.php ?

Any help is wellcome,

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Friday 11 January 2008 7:38:26 pm

Hi,

In fact the problem is not related to the version of eZ Publish. I have the same problem with a version 3.9.4 Plain type.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Friday 11 January 2008 10:43:10 pm

Hi,

Well, I've found where the trouble comes from:

In the défault full/feedback_form.tpl template there is a missing ligne: the one which displays the sender name field (this field is present in the "Contact us" form in the edit interface of the administration interface).

Once I add such a line:

<div class="attribute-sender-name">
   {attribute_view_gui attribute=$node.data_map.sender_name}
</div>

...all work fine.

Can anyone explain me the reason of this behavior ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish