Why won't this snippet work?

Why won't this snippet work?

Tuesday 15 July 2003 3:31:04 am - 2 replies

Author Message

Jan Borsodi

Tuesday 15 July 2003 3:40:21 am

The problem is most likely this line
{case match>=3}
Template functions does support operator handling for their parameters, secondly all template functions are 100% generic which means that switch/case is not a builtin template operation.

You can solve this by using the section function and some operators.
{section show=$noOfArticles|ge(3)}
...
{/section}

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Valentin Svelland

Tuesday 15 July 2003 4:58:15 am

Thanks Jan, that worked out fine!

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.