[solved] Add a hidden field in a Information Collector Form

Author Message

Paul Etienney

Wednesday 17 December 2008 7:37:50 am

Hi,

<b>Here is what i want to :</b>
I want to know the page visited before the visitor decide to fill Information Collector form.

To do so, I put an extra hidden field in the template :

<input type="hidden" name="PrecPage" value="{ezhttp( 'LastAccessesURI', 'session')}" />

<b>My problem</b>

I do not know how to have access to this extra input when the form is filled.

Is there a variable ? The $collection variable just contains the object attributes.

Thanks.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Ivo Lukac

Thursday 18 December 2008 12:51:14 am

Hello Paul,

Add one more attribute to your class, and then in full template hide this field and fill it with value you want. With this you can always use your value (e.g. in email)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Paul Etienney

Monday 22 December 2008 4:52:41 am

Sometime, it is so simple that we don't think about it.

Thank you.

-- Good websites creation --
My site : http://www.pauletienney.com
Twitter : http://www.twitter.com/p_etienney

Ivo Lukac

Monday 22 December 2008 5:03:29 am

That is why it is called eZ ;)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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

Main resources:

Total runtime0.0231 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.3906151.2422
Module start 'layout' 0.00470.0040 739.6328220.7500
Module start 'content' 0.00870.0130 960.38281,001.8672
Module end 'content' 0.02170.0014 1,962.250033.9922
Script end 0.0231  1,996.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.2570140.0002
Check MTime0.00125.3353140.0001
Mysql Total
Database connection0.00062.386310.0006
Mysqli_queries0.002410.225330.0008
Looping result0.00000.056710.0000
Template Total0.00104.310.0010
Template load0.00083.346910.0008
Template processing0.00020.947310.0002
Override
Cache load0.00052.304810.0005
General
dbfile0.00104.492180.0001
String conversion0.00000.030940.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