form wrapped around content in templates, why?

Author Message

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

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

eZ debug

Timing: Jan 19 2025 11:44:54
Script start
Timing: Jan 19 2025 11:44:54
Module start 'layout'
Timing: Jan 19 2025 11:44:54
Module start 'content'
Timing: Jan 19 2025 11:44:54
Module end 'content'
Timing: Jan 19 2025 11:44:54
Script end

Main resources:

Total runtime0.0148 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.2891152.6406
Module start 'layout' 0.00530.0030 741.929739.4766
Module start 'content' 0.00830.0045 781.406389.3984
Module end 'content' 0.01280.0020 870.804730.3047
Script end 0.0147  901.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.8929140.0002
Check MTime0.00106.7732140.0001
Mysql Total
Database connection0.00064.273610.0006
Mysqli_queries0.002718.489330.0009
Looping result0.00000.108010.0000
Template Total0.001610.910.0016
Template load0.00095.870110.0009
Template processing0.00075.012210.0007
Override
Cache load0.00053.672010.0005
General
dbfile0.00021.535380.0000
String conversion0.00000.067740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs