Thursday 02 September 2004 5:37:01 am
This is the template code that I am using:
<div class="object_title">
<h1>{$node.name|wash}</h1>
</div>
<form method="post" action={"content/action"|ezurl}>
{attribute_view_gui attribute=$node.object.data_map.description}
<p>
<b>Subject:</b><br />
{attribute_view_gui attribute=$node.object.data_map.subject}<br />
<b>E-mail:</b><br />
{attribute_view_gui attribute=$node.object.data_map.email}<br />
<b>Phone Number:</b><br />
{attribute_view_gui attribute=$node.object.data_map.phone}<br />
<b>Message:</b><br />
{attribute_view_gui attribute=$node.object.data_map.message}<br />
<b>Would you like to be contacted about this matter?</b>{attribute_view_gui attribute=$node.object.data_map.contact}<br />
</p>
<div class="block">
<input type="submit" class="defaultbutton" name="ActionCollectInformation" value="Send" />
</div>
<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" />
<input type="hidden" name="RedirectURI" value="{$node.parent_node_id|ezroot}" />
<hr />
Please see our <a href="http://www.myflorida.com/myflorida/privacy.html">privacy policy</a> if you have questions about how we use the information that you provide during feedback.
</form>
Where Contact is the checkbox attribute. YOu can see the form here (it is live, so responses will go to my client). http://dms.myflorida.com/dms/administration/communications/contact_communications
The attribute is defined in the class like this:
7. I would like to be contacted (Checkbox) (id:205)
Name: I would like to be contacted
Identifier: contact
Is not required
Is searchable
Collects information
Translation is enabled
Default value: Unchecked
I created the override that is included above, but the class also lists three other overrides, presumably from the default 3.4 installation. They are: 1) feedback_form_full /node/view/full.tpl design/standard/override/templates/full/feedback_form.tpl 2) feedback_form_line /node/view/line.tpl design/standard/override/templates/line/feedback_form.tpl 3) feedback_form_mail /content/collectedinfomail/form.tpl design/standard/override/templates/collectedinfomail/feedback_form.tpl I cannot recall anything unusual that was required during development to implement the checkbox, but I am not 100% sure. Hope this helps a little...and good luck, Mark
http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions
|