17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2166 Views |
-
if with or, or somethings else ;-)

12 May 2008 at 5:50am Last edited: 16 May 2008 1:51am
Hello @all!
I have a simple menu, but I wanted to have some spaces between at some positions.
like:
***********
Home
<br />
Contact
Impress
<br />
News
***********So, I have to inklude:
<% if Pos = 2 %>
<li style="height: 5px;"> </li>
<% end_if %>But for the secound spacer I wouldn't like to write:
<% if Pos = 4 %>
<li style="height: 5px;"> </li>
<% end_if %>How can I made this with only one if-statement?
<% if Pos = 2 || Pos = 4 %>
<% if (Pos = 2) || (Pos = 4) %>
<% if Pos = 2 or Pos = 4 %>
<% if (Pos = 2) or (Pos = 4) %>
has the only effect that the site will be blank. ;-) -
Re: if with or, or somethings else ;-)

16 May 2008 at 11:04am
Are the breaks determined by the menu items themselves or just the position? If its the menu items, you could add a new field to the relevant page type called 'MenuSpace', then use the value of that field in your if statement to decide whether to insert a space above the item.
cheers
bruce -
Re: if with or, or somethings else ;-)

16 May 2008 at 7:03pm
Thanx, for this idea.
I will try to do so ;-)
| 2166 Views | ||
|
Page:
1
|
Go to Top |


