Forum: Radiant CMS boolean expressions in tags

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5e1664568f9bd3a77b0ddfce92ca9fd5?d=identicon&s=25 Anup Kotadia (Guest)
on 2007-02-26 04:34
(Received via mailing list)
Hello, I am trying to build a website with Radiant CMS and the basic
style of the site is a navigation bar at the top and content below, with
a sidebar depending on the content.  What I am trying to do is decide if
I should put a sidebar or not using a boolean tag as follows
<r:unless_url matches="^/$"> but I want to put additional page checks in
there, such as <r:unless_url matches="^/$" OR matches="^/gallery/$"> .
Is this possible and if so, what is the proper syntax.  I have looked
through the Radiant site and found nothing to help me.
 - pplshero54
8802b1fa1b53e2197beea9454244f847?d=identicon&s=25 Sean Cribbs (Guest)
on 2007-02-26 04:58
(Received via mailing list)
What you want to do could be expressed with regular expressions:

<r:unless_url matches="^/(gallery/)?$">

This topic is locked and can not be replied to.