POST/ACTION send variable

Author Message

Jens Kultima

Thursday 08 November 2007 4:45:15 am

Hi,

I have a button, when I click on it it sends an action requst to edit the current node. That works perfect. The questions is how do I send an extra variable with the edit requst so that I can reach this variable in the edit mode?

My code look like this:

<form method="post" action={concat("content/edit/", $node.object.id)|ezurl}>
		<input class="button" type="submit" name="editButton" value="Aktivera/inaktivera projekt" />
	</form>

Thank you!

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 18 2025 18:21:06
Script start
Timing: Jan 18 2025 18:21:06
Module start 'layout'
Timing: Jan 18 2025 18:21:06
Module start 'content'
Timing: Jan 18 2025 18:21:07
Module end 'content'
Timing: Jan 18 2025 18:21:07
Script end

Main resources:

Total runtime0.4946 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 591.6484152.6250
Module start 'layout' 0.00590.0030 744.273439.4453
Module start 'content' 0.00890.4841 783.7188399.7188
Module end 'content' 0.49300.0016 1,183.43758.1641
Script end 0.4946  1,191.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.6926160.0002
Check MTime0.00140.2873160.0001
Mysql Total
Database connection0.00050.106110.0005
Mysqli_queries0.457492.4751460.0099
Looping result0.00040.0774440.0000
Template Total0.465294.120.2326
Template load0.00220.446920.0011
Template processing0.463093.603520.2315
Template load and register function0.00020.044910.0002
states
state_id_array0.00100.211510.0010
state_identifier_array0.00080.157320.0004
Override
Cache load0.00180.357280.0002
Sytem overhead
Fetch class attribute can translate value0.00050.105110.0005
Fetch class attribute name0.00050.110210.0005
XML
Image XML parsing0.00010.021410.0001
class_abstraction
Instantiating content class attribute0.00000.001010.0000
General
dbfile0.00080.1546100.0001
String conversion0.00000.002040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs