Wednesday 25 February 2004 1:55:19 am
I noticed in some templates in the shop package that there's a form wrapped around the content. What's it for? example (infopage.tpl):
<form method="post" action={"content/action"|ezurl}>
<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" />
<h2>{$node.name|wash}</h2>
{attribute_view_gui attribute=$node.object.data_map.body}
</form>
While when I use:
<h2>{$node.name|wash}</h2>
{attribute_view_gui attribute=$node.object.data_map.body}
It works fine as well without the form, so what's the use of the form and why should I keep it there?
-------------------------------
http://www.kookfijn.nl & http://www.magento.be
|