Question about unsorted parameters

Author Message

Fox Mulder

Monday 10 September 2007 12:56:17 am

Hello all,

I want to create a html form which genereate unsorted paramters like url/(category)/value

I have write this
<FORM action={concat( $node.url_alias, '/(category)/', ezhttp( 'wanted_category', 'post' ) )|ezurl} method="post">
<select name="wanted_category" >
{foreach $category_objects as $category_object }
<option value ="{$category_object.contentobject_id}">{$category_object.name}</option>
{/foreach}
</select>
<INPUT type="submit" value="Send">
</FORM>

... but the adres is not properly created. The system generate adres like www.blabla.com/(category)/

so the posted varibales is no added to the address
I think the form do this on that way because it can't generate adres with varible which is not still posted (when the form generates the address the post varible is not posted yet)

Could you tell me how i can reach my purpose (to generate adress like www.blabla.com/(category)/value with html form )

Laurent BOURREL

Monday 10 September 2007 1:26:45 am

Hi,

ezurl will check if the url really exists.

Perhaps you should try something like :

<FORM action="{concat( $node.url_alias|ezurl(no), '/(category)/', ezhttp( 'wanted_category', 'post' ) )}" method="post">

Hope this helps...

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 23:01:38
Script start
Timing: Jan 18 2025 23:01:38
Module start 'layout'
Timing: Jan 18 2025 23:01:38
Module start 'content'
Timing: Jan 18 2025 23:01:39
Module end 'content'
Timing: Jan 18 2025 23:01:39
Script end

Main resources:

Total runtime1.6385 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 587.9219152.6250
Module start 'layout' 0.00790.0042 740.546939.4609
Module start 'content' 0.01211.6250 780.0078462.4688
Module end 'content' 1.63710.0013 1,242.47668.1563
Script end 1.6385  1,250.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2009160.0002
Check MTime0.00140.0861160.0001
Mysql Total
Database connection0.00080.050510.0008
Mysqli_queries1.591297.1109540.0295
Looping result0.00060.0341520.0000
Template Total1.584196.720.7920
Template load0.00200.124420.0010
Template processing1.582096.551720.7910
Template load and register function0.00030.015810.0003
states
state_id_array0.00320.196910.0032
state_identifier_array0.00210.128020.0010
Override
Cache load0.00170.1064250.0001
Sytem overhead
Fetch class attribute can translate value0.00090.054820.0004
Fetch class attribute name0.00120.071820.0006
XML
Image XML parsing0.00080.047120.0004
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00070.0411100.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs