17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 10564 Views |
-
Template page control with boolean operators

24 May 2008 at 4:11am Last edited: 24 May 2008 4:14am
Hi there,
is it possible to use boolean operators in the template page control?
I want to have a control structur witch combines arguments with an "OR" e.g.<% if ClassName = HomePage %>
<p>Hello</p>
<% end_if %><% if ClassName = BlogHolder %>
<p>Hello</p>
<% end_if %>Are boolean operators possible in some way?
-
Re: Template page control with boolean operators

24 May 2008 at 12:06pm
What's the syntax?
None of the following work:
<% if ClassName = a || ClassName = b %>
<% if ClassName = a | ClassName = b %>
<% if ClassName = a or ClassName = b %>
-
Re: Template page control with boolean operators

26 May 2008 at 8:20am
AFAIK using OR is not possible.
Using just boolean checks is though, but no OR's / AND's afaik. Would be handy though.
-
Re: Template page control with boolean operators

26 May 2008 at 7:05pm Last edited: 26 May 2008 7:08pm
-> no result! No "OR's / AND's" are working!
Oh - ok, thanks!
But thats a shame!!!
Maybe someone will fix it some day!
-
Re: Template page control with boolean operators

26 May 2008 at 10:49pm
there has been a few template discussions on the dev list - http://groups.google.com/group/silverstripe-dev/browse_thread/thread/db752c5de80f3156
| 10564 Views | ||
|
Page:
1
|
Go to Top |





