Wednesday 27 February 2008 4:12:04 am
I finally made it work, using a default form that is referenced in this topic http://ez.no/developer/forum/setup_design/problem_with_contact_form/re_problem_with_contact_form__4 The form code is in http://zev.ez.no/svn/extensions/ezwebin/trunk/packages/ezwebin_extension/ezextension/ezwebin/design/ezwebin/override/templates/full/feedback_form.tpl
{* Feedback form - Full view *}
<div class="border-box">
<div class="border-tl"><div class="border-tr"><div class="border-tc"></div></div></div>
<div class="border-ml"><div class="border-mr"><div class="border-mc float-break">
<div class="content-view-full">
<div class="class-feedback-form">
<div class="attribute-header">
<h1>{$node.name|wash()}</h1>
</div>
{include name=Validation uri='design:content/collectedinfo_validation.tpl'
class='message-warning'
validation=$validation collection_attributes=$collection_attributes}
<div class="attribute-short">
{attribute_view_gui attribute=$node.data_map.description}
</div>
<form method="post" action={"content/action"|ezurl}>
<h4>{$node.data_map.sender_name.contentclass_attribute.name}</h4>
<div class="attribute-sender-name">
{attribute_view_gui attribute=$node.data_map.sender_name}
</div>
<h4>{$node.data_map.email.contentclass_attribute.name}</h4>
<div class="attribute-email">
{attribute_view_gui attribute=$node.data_map.email}
</div>
<h4>{$node.data_map.subject.contentclass_attribute.name}</h4>
<div class="attribute-subject">
{attribute_view_gui attribute=$node.data_map.subject}
</div>
<h4>{$node.data_map.message.contentclass_attribute.name}</h4>
<div class="attribute-message">
{attribute_view_gui attribute=$node.data_map.message}
</div>
<div class="content-action">
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="{"Send form"|i18n("design/ezwebin/full/feedback_form")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</div>
</form>
</div>
</div>
</div></div></div>
<div class="border-bl"><div class="border-br"><div class="border-bc"></div></div></div>
</div>
So I changed the blocks
<h4>{$node.data_map.subject.contentclass_attribute.name}</h4>
<div class="attribute-subject">
{attribute_view_gui attribute=$node.data_map.subject}
</div>
to display the properties of my own object and my css classes, but nothing else, and it worked. Now I can see the data in the admin panel, setup/information collection/name_of_my_instance -> click on the link under "number of collections" I couldn't really figure out the difference between my previous code and this one but I have to say as it was working I didn't try to hard ;) Another thing that happened was that I had changed an attribute of the class AFTER having instantiated my form, I also made a few template changes and I was getting the same behaviour you are talking about. So I can't swear the change in the class was the reason, but when I put my old class back it just worked again... Hope this is helpfull to you Yudi Vicente it was kind of you to try to help but to send me the link I said I used as a model seems like you're not really reading, don't you think? ;)
|