Forums / Developer / ezhttp and cache / Comment48232

Author Topic

André R.

Tuesday 12 June 2007 1:46:46 am

Comment48232

If you use view params the viewcache should handle it correctly.

uri:
some_nice_uri/(my_var)/44/(my_other_var)/yes

code:
{def $myvar = first_set($view_parameters.my_var, 0)}

Using first_set will handle cases where it's not set..

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