Forums / Setup & design / Scope of $view_parameters

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