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.

eZ debug

Timing: Jan 19 2025 03:42:33
Script start
Timing: Jan 19 2025 03:42:33
Module start 'layout'
Timing: Jan 19 2025 03:42:33
Module start 'content'
Timing: Jan 19 2025 03:42:34
Module end 'content'
Timing: Jan 19 2025 03:42:34
Script end

Main resources:

Total runtime0.8477 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.0051 589.1641152.6250
Module start 'layout' 0.00510.0028 741.789139.4453
Module start 'content' 0.00790.8382 781.2344530.4219
Module end 'content' 0.84610.0015 1,311.65638.1563
Script end 0.8476  1,319.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3933160.0002
Check MTime0.00140.1680160.0001
Mysql Total
Database connection0.00080.090910.0008
Mysqli_queries0.795293.8130570.0140
Looping result0.00100.1142550.0000
Template Total0.812995.920.4064
Template load0.00250.300520.0013
Template processing0.810395.596320.4052
Template load and register function0.00040.050510.0004
states
state_id_array0.00100.121110.0010
state_identifier_array0.00180.217320.0009
Override
Cache load0.00200.2375190.0001
Sytem overhead
Fetch class attribute can translate value0.00090.102620.0004
Fetch class attribute name0.00160.183440.0004
XML
Image XML parsing0.00070.080820.0003
class_abstraction
Instantiating content class attribute0.00010.010740.0000
General
dbfile0.00090.1047160.0001
String conversion0.00000.001240.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
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
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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs