problem to geta variable from the url

Author Message

François Xavier Lacroix

Thursday 09 June 2005 6:23:15 am

Hi everybody,
I got troubles in finding back a variable from my adress.
I got an url like ...ez/index.php/www/(succeed)/ko_bad,
And i would like to find back my variable succeed and my value ko_bad;
so i put {ezhttp( 'succeed', 'get' )} in my tpl, but it doesn't seem to work...
An idea ?

François Xavier Lacroix

Thursday 09 June 2005 6:41:40 am

sorry for that.... i understood ;)

Kristian Hole

Monday 13 June 2005 5:51:19 am

If you use /(succeed)/ko_bad

it will be available in the templates as

{$view_parameters.succeded}

:)

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

François Xavier Lacroix

Monday 13 June 2005 5:55:03 am

thx !

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 04:42:38
Script start
Timing: Jan 19 2025 04:42:38
Module start 'layout'
Timing: Jan 19 2025 04:42:38
Module start 'content'
Timing: Jan 19 2025 04:42:38
Module end 'content'
Timing: Jan 19 2025 04:42:38
Script end

Main resources:

Total runtime0.5981 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 590.3047152.6250
Module start 'layout' 0.00800.0051 742.929739.4453
Module start 'content' 0.01310.5836 782.3750550.0078
Module end 'content' 0.59670.0014 1,332.382812.4688
Script end 0.5980  1,344.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.6754160.0003
Check MTime0.00150.2484160.0001
Mysql Total
Database connection0.00110.176810.0011
Mysqli_queries0.534689.3816600.0089
Looping result0.00080.1371580.0000
Template Total0.557393.220.2787
Template load0.00250.418020.0012
Template processing0.554892.765520.2774
Template load and register function0.00010.021110.0001
states
state_id_array0.00140.233710.0014
state_identifier_array0.00170.289420.0009
Override
Cache load0.00210.3570220.0001
Sytem overhead
Fetch class attribute can translate value0.00070.112320.0003
Fetch class attribute name0.00170.278760.0003
XML
Image XML parsing0.00130.209020.0006
class_abstraction
Instantiating content class attribute0.00000.003680.0000
General
dbfile0.00110.1828220.0000
String conversion0.00000.001740.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs