Collection information from user

Author Message

Kjell Inge Sandvik

Friday 01 July 2005 7:37:53 am

Hello!

I want to show a simple contact-us form that should be sent to the specified email, but I simply can't get that submit-button to work :-(

This is what I have done:

1. Made a new class for the contact-form and a "dummy" instance of it.

2. Overridden the node/view/full.tpl for that class-identifier

3. The new template template is as follows:

{let formnode=fetch( content, node, hash( node_id, 79 ) )

<form method="post" action={"content/action"|ezurl}>
	<div class="navn">Navn: {attribute_view_gui attribute=$formnode.object.data_map.navn}</div>
	<div class="epost">Epost: {attribute_view_gui attribute=$formnode.object.data_map.epost}</div>
	<div class="henvendelse">Henvendelse: {attribute_view_gui attribute=$formnode.object.data_map.henvendelse}</div>

	<input type="submit" class="emailsubmitbutton" name="ActionCollectInformation" value="Send hendendelse">

	<input type="hidden" name="ContentNodeID" value="{$formnode.node_id}" />
	<input type="hidden" name="ContentObjectID" value="{$formnode.object.id}" />
	<input type="hidden" name="ViewMode" value="full" />

</form>

{/let}

4. Made a override for content/collectedinformail/form.tpl to produce a custom template for the mail to the information-receiver.

The form shows up alright, but it don't seems to react much upon the submit-botton. What have I been doing wrong here?

Kjell Inge Sandvik
VizyTech

Sandvik Web & Data

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.