Scope of $view_parameters

Author Message

James Ward

Thursday 14 April 2005 1:30:52 pm

In my folder_full.tpl

{$view_parameters|attribute(show)}

Shows the content of the offset, year, month, day, and any vairables I pass in the url.

However the same code called from my article_full.tpl within the same folder shows no variables or values. Is there anyway to extend the scope of $view_parameters to allow me to pass variables to my article_full template?

Thanks in advance.

working at www.wardnet.com
blogging at www.jamesward.ca

Frederik Holljen

Friday 15 April 2005 4:02:00 am

http://ez.no/ez_publish/documentation/development/libraries/ez_template/basics/namespaces
You should be able to reach the view parameters using the #.

Try {$#view_parameters|attribute(show)}

James Ward

Monday 18 April 2005 8:45:49 am

Thanks Frederik,
That worked like a charm. I thought with the newer versions of ezpublish namespaces were not such an issue. I'll have to remember this for future development.

James

working at www.wardnet.com
blogging at www.jamesward.ca

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

Main resources:

Total runtime0.8250 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.0066 589.1563152.6250
Module start 'layout' 0.00660.0032 741.781339.4453
Module start 'content' 0.00970.8128 781.2266538.7734
Module end 'content' 0.82250.0024 1,320.000012.1641
Script end 0.8250  1,332.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4514160.0002
Check MTime0.00130.1537160.0001
Mysql Total
Database connection0.00140.175510.0014
Mysqli_queries0.772793.6564570.0136
Looping result0.00060.0701550.0000
Template Total0.788295.520.3941
Template load0.00210.257220.0011
Template processing0.786195.283720.3931
Template load and register function0.00010.016610.0001
states
state_id_array0.00170.203010.0017
state_identifier_array0.00260.311820.0013
Override
Cache load0.00170.2058190.0001
Sytem overhead
Fetch class attribute can translate value0.00080.099620.0004
Fetch class attribute name0.00160.188250.0003
XML
Image XML parsing0.00110.127920.0005
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00110.1300220.0000
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs