{switch} {case} will not Work!!!?!?!

{switch} {case} will not Work!!!?!?!

Wednesday 23 July 2003 2:22:18 pm - 4 replies

Author Message

Alex Jones

Wednesday 23 July 2003 2:27:42 pm

Douglas, {switch} {case} should work. Could you post some specifics as to the problem you are encountering?

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Douglas Johnson

Wednesday 23 July 2003 2:32:38 pm

Thanks Alex.

I think it has something to do with either the "!=" or the "match=$node.name". When I have:

{switch name=navcheck match="99"}

{case match!="22"}

It works! But not with the variable $node.name???? Any ideas.

Douglas Johnson

Wednesday 23 July 2003 2:42:53 pm

OK, the problem is with the "!=". Is this a valid operator? If not, what do I use for not equal? I have tried ne and <> but niether work???

Kjerand Pedersen

Wednesday 23 July 2003 3:00:23 pm

To use the 'ne' operator, to this:

{section show=$node.name|ne("Home")}
...statements...
{/section}

Or use Switch as in my reply to your other post.

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.