Forums / Setup & design / using $view_parameters in custom tags

using $view_parameters in custom tags

Author Message

Marko Žmak

Wednesday 03 December 2008 6:45:12 am

Is it possible to use the $view_parameters variable in custom tags?

I tried a lot of ways to achieve this but without success. Any ideas?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

André R.

Wednesday 03 December 2008 10:10:19 am

Tried $#view_parameters?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Marko Žmak

Wednesday 03 December 2008 10:39:02 pm

Yes, I have tried using it in global scope with $#view_parameters but it doesn't work. I've also tried putting this:

{set scope='global' $view_parameters=$view_parameters}

in node override template, but still doesn't work. Am I doing something wrong?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marko Žmak

Thursday 11 December 2008 11:26:56 pm

After several days trying to achieve this i have concluded that it's not possible. The global $#view_parameters variable is not available in custom tags templates, but since it IS available in content/datatype/view/ezxmltext.tpl template I think this is a bug. So I have reported it here:

http://issues.ez.no/IssueView.php?Id=14121&activeItem=1

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth