how can I create simple forms?

Author Message

Albert Berenguer

Tuesday 03 February 2004 8:48:36 am

hi all,
i have some basic doubts about creating forms and I haven't found documentation on it. I'll try to explain it:

1st) in the first page I have a form with a SELECT list, i.e. with values 'a', 'b' and 'c'
2nd) i have a class with an attribute (an enum) with 'a', 'b' and 'c' as possible values

in the first page the user will choose one of the values in the list, and when the form is submitted I want to display all the objects in a specific folder that equal in its enum attribute, the value selected by the user.

I think it should be sthg easy, but I don't know how to share information between templates (or send information form a template to another), or what do I have to put in the ACTION field of the form.
Maybe it can be done without using forms, in that case, how?

I hope I explained fine, thanks in advance for any help provided.

James Packham

Tuesday 03 February 2004 9:42:41 am

I think (your description of what you want isn't very clear) you can find examples of what you want to do if you look at the advanced search templates in standard designs. That deals with using POST variables and selects together, which will help you carry vaiables over.

There's a specific part that might interest you, search for the string "SearchContentClassAttributeID" This is the bit on the advanced search that lets you choose a class and push a button, so that you can search by attribute of that class (wait, does that make sense?) I believe this is very similar to what you're doing?

Regards,

~James~

Albert Berenguer

Tuesday 03 February 2004 10:04:10 am

thanks for the reply, I'll take a look at it. Otherwise i found that maybe eZenv can help me as I can make a form which is sent to a specific node, and then with eZenv I can access the variables in the form.
I'll continue trying and post any progress...

thanks again

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 16:00:35
Script start
Timing: Jan 18 2025 16:00:35
Module start 'layout'
Timing: Jan 18 2025 16:00:35
Module start 'content'
Timing: Jan 18 2025 16:00:36
Module end 'content'
Timing: Jan 18 2025 16:00:36
Script end

Main resources:

Total runtime0.9824 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.3438152.6250
Module start 'layout' 0.00520.0027 741.968839.4453
Module start 'content' 0.00790.9727 781.4141504.8672
Module end 'content' 0.98060.0017 1,286.281312.1641
Script end 0.9823  1,298.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3179160.0002
Check MTime0.00120.1253160.0001
Mysql Total
Database connection0.00060.063310.0006
Mysqli_queries0.927094.3637570.0163
Looping result0.00060.0595550.0000
Template Total0.946196.320.4731
Template load0.00200.203020.0010
Template processing0.944196.105320.4721
Template load and register function0.00030.025810.0003
states
state_id_array0.00100.106310.0010
state_identifier_array0.00200.208120.0010
Override
Cache load0.00160.1646210.0001
Sytem overhead
Fetch class attribute can translate value0.00070.071420.0004
Fetch class attribute name0.00120.124740.0003
XML
Image XML parsing0.00090.088220.0004
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00100.1058160.0001
String conversion0.00000.000640.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs