3217 Posts in 853 Topics by 812 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1246 Views |
-
If Menu(2) Doesn't Exist do This...

15 April 2010 at 9:17am
Hi,
I'm trying to load a stylesheet if Menu(2) doesn't exist:
<% if (!isset(Menu(2))) %>
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="themes/pmb/css/ie7-menu-2-fix.css" />
<![endif]-->
<% end_if %>However that code obviously isn't right and I can't figure it out. I'm sure its extremely easy but anyone have a tip? My Googling has failed.
Thanks
-
Re: If Menu(2) Doesn't Exist do This...

15 April 2010 at 4:43pm Last edited: 15 April 2010 4:44pm
In SS templates you can simply do the following. isset() is a PHP function
<% if Menu(2) %>
...
<% else %>
... -
Re: If Menu(2) Doesn't Exist do This...

16 April 2010 at 9:15am
Ahh it was super easy. Cheers Will, that completes the website!
| 1246 Views | ||
|
Page:
1
|
Go to Top |

