Use a parameter into a html link

Author Message

Anthony M.

Thursday 19 October 2006 3:28:03 am

Hello,

i want to put a parameter into a html link to use this parameter in an other template.

For example :
In my first template, i've got :

<a href="http://.../layout/set/print/(noeud)/153">TEXTE</a>

and in the second, i want to use the parameter 'noeud', is it possible like this ???

Thanks a lot for your help

Anthony

Anthony M.

Thursday 19 October 2006 3:29:19 am

I forget a sentence :

how can i get the value of the parameter in the second template ???

Anthony

Andrew Kelly

Thursday 19 October 2006 5:24:41 am

Something like that will work if the particular module you are calling accepts named parameters. That's how pagination works, for example.
Don't know off-hand if the layout mod takes named-p's or not, sorry.

In similar situations, I've generally added a GET string to the link and then pulled the data from it with ezhttp('get', 'varName')

Andy

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.