Forums / Developer / Best practice for handling keys in $view_parameters

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Best practice for handling keys in $view_parameters

Author Message

Lars Eirik R

Friday 06 May 2011 2:02:29 am

Hi. I need to check if my $view_parameters contains a given key. What is the best approach for doing this without getting any warnings in my log.

Could someone verify that is_set is the right way? seems to work

Ivo Lukac

Friday 06 May 2011 2:50:14 am

Yes:

{if is_set($view_parameters.foo)}

{/if}

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac