Forums / Setup & design / Scope of $view_parameters
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/namespacesYou should be able to reach the view parameters using the #.
Try {$#view_parameters|attribute(show)}
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