Accessing to Post Variables from Templates

Author Message

Sergi A

Tuesday 26 January 2010 3:47:15 am

Hi,

i'm building a new website with different folders, and i need to show a search form for every folder. So, i overrided node/view/full for every folder, and now, in each of these tpl's i'm trying to show a form. The post variables of this form should be sended to the template itself. But I can't send these variables...the url is not completed with "?name_var=value_var"

Any ideas please?

Sergi.

Damien MARTIN

Tuesday 26 January 2010 7:00:45 am

I know that variables could be lost, if eZ has to correct the url.

For example, your page is : /My-web-page

If you want to send url parameters you will write : /My-web-page?var=foo

But if you have written your url with an error like : /my-web-page?var=foo, eZ will redirect automaticaly to /My-web-page but the parameters will be lost.

Sergi A

Wednesday 27 January 2010 12:08:07 am

Thank you Damien, that's exactly what happened to me... so, from now on, i'll always use $node.url_alias|ezurl ^^

Bonjour!

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 04:58:04
Script start
Timing: Jan 18 2025 04:58:04
Module start 'layout'
Timing: Jan 18 2025 04:58:04
Module start 'content'
Timing: Jan 18 2025 04:58:05
Module end 'content'
Timing: Jan 18 2025 04:58:05
Script end

Main resources:

Total runtime0.7852 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.0081 588.0469152.6406
Module start 'layout' 0.00810.0033 740.687539.4766
Module start 'content' 0.01140.7726 780.1641503.3516
Module end 'content' 0.78400.0012 1,283.51568.1250
Script end 0.7852  1,291.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5967160.0003
Check MTime0.00150.1879160.0001
Mysql Total
Database connection0.00140.181210.0014
Mysqli_queries0.723692.1543570.0127
Looping result0.00080.1024550.0000
Template Total0.748495.320.3742
Template load0.00240.299720.0012
Template processing0.746195.010520.3730
Template load and register function0.00020.024210.0002
states
state_id_array0.00130.168710.0013
state_identifier_array0.00100.123320.0005
Override
Cache load0.00200.2548200.0001
Sytem overhead
Fetch class attribute can translate value0.00160.209220.0008
Fetch class attribute name0.00190.247540.0005
XML
Image XML parsing0.00400.509320.0020
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00450.5747160.0003
String conversion0.00000.001140.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
6content/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
3content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.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.0001 secs