Forums / Developer / Accessing to Post Variables from Templates

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!