Passing a variable to an edit template

Author Message

Sören Dero

Wednesday 26 November 2008 6:37:30 am

So what I want to do is as the title says, passing a variable to an edit template.

My first idea was to just pass it with post, like this:

<form method="post" action={"/content/action"|ezurl}>
<input type="hidden" name="NodeID" value="580" />
<input type="hidden" name="ClassIdentifier" value="ii" />
<input type="hidden" name="type" value="{$my_type}" />
<input type="submit" class="button" name="NewButton" value="Create a new general description" />
</form>

And then on my edit template read it wit ezhttp('type', 'post'), what has worked on other templates.

But here it doesn't work.
Why doesn't it work and how could I pass my variable?

thanks in advance.

Sören Dero

Wednesday 03 December 2008 5:26:30 am

Nobody who has an idea?

Forex System Profi

Wednesday 03 December 2008 6:35:42 am

Hm, I am interested in finding the answer. Don't know how simply to pass variable:-(

Metatrader Expert ( http://iticsoftware.com ), Scalping Forex ( http://iticsoftware.com/scalping-forex.php ), Forex Trading Systems ( http://shop.profxtools.com )

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 31 2025 01:33:17
Script start
Timing: Jan 31 2025 01:33:17
Module start 'layout'
Timing: Jan 31 2025 01:33:17
Module start 'content'
Timing: Jan 31 2025 01:33:17
Module end 'content'
Timing: Jan 31 2025 01:33:17
Script end

Main resources:

Total runtime0.0218 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.2500151.2266
Module start 'layout' 0.00460.0040 739.4766220.7031
Module start 'content' 0.00860.0115 960.1797997.6797
Module end 'content' 0.02010.0017 1,957.859429.9922
Script end 0.0218  1,987.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.2875140.0002
Check MTime0.00114.8203140.0001
Mysql Total
Database connection0.00083.694810.0008
Mysqli_queries0.00209.041830.0007
Looping result0.00000.119110.0000
Template Total0.00115.110.0011
Template load0.00093.969110.0009
Template processing0.00021.140910.0002
Override
Cache load0.00062.769210.0006
General
dbfile0.00031.230580.0000
String conversion0.00000.051440.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