varibles in URL

Author Message

Ɓukasz Serwatka

Monday 06 December 2004 3:28:29 am

Hi,

How to get access to varible which was set in URL.

prefix/(lang)/english

lang - variable
english - value

In *.tpl file
{$lang} - no result

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Ole Morten Halvorsen

Monday 06 December 2004 3:46:45 am

Luke,

{$view_parameters.lang}

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

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:41:01
Script start
Timing: Jan 19 2025 03:41:01
Module start 'layout'
Timing: Jan 19 2025 03:41:01
Module start 'content'
Timing: Jan 19 2025 03:41:02
Module end 'content'
Timing: Jan 19 2025 03:41:02
Script end

Main resources:

Total runtime1.1422 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.0234152.6094
Module start 'layout' 0.00510.0029 741.632839.3984
Module start 'content' 0.00801.1325 781.0313527.5234
Module end 'content' 1.14050.0016 1,308.55478.2031
Script end 1.1421  1,316.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2717160.0002
Check MTime0.00120.1085160.0001
Mysql Total
Database connection0.00050.041910.0005
Mysqli_queries1.096896.0266540.0203
Looping result0.00060.0504520.0000
Template Total1.110897.320.5554
Template load0.00210.184720.0011
Template processing1.108697.064620.5543
Template load and register function0.00010.008210.0001
states
state_id_array0.00080.066410.0008
state_identifier_array0.00130.114020.0007
Override
Cache load0.00170.1511150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.055520.0003
Fetch class attribute name0.00150.127830.0005
XML
Image XML parsing0.00070.061420.0004
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00090.0769180.0000
String conversion0.00000.000840.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs