Forums / Setup & design / form wrapped around content in templates, why?
bisk
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
Jan Borsodi
Tuesday 02 March 2004 7:55:17 am
The form is not needed. I believe this is just a result of a copy/paste operation from another template which had an edit or remove button, either that or the buttons has been removed later on but not the form.
-- Amos Documentation: http://ez.no/ez_publish/documentation FAQ: http://ez.no/ez_publish/documentation/faq