17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1554 Views |
-
Double menu on login page

25 July 2007 at 8:52am
Hello everybody!
I've got a problem with my login-page.
In my page.ss I've got a menu(1) and a menu(2) for all the sub-items showing in a different menu.
When I go to the /admin page both the menu's show the same item.
Is there a proper solution for this?Thanks for your help.
-
Re: Double menu on login page

25 July 2007 at 10:24am
Try surrounding your Menu(2) with:
[html]
<% if Level(2) %>...
<% end_if %>
[/html] -
Re: Double menu on login page

26 July 2007 at 5:04am Last edited: 26 July 2007 6:19am
That worked, only I still got a similar problem right now.
When is use the <% if Level(2) %> the loginpage looks allright, but on all the other pages the menu doesn't show up.
Here's the code of the menu:[html]
<% if Level(2) %>
<ul id="Menu2">
<% control Menu(2) %>
<% if Last %>
<li class="$LinkingMode" id="menu2-last"><a href="$Link" title="{$Title}">$MenuTitle</a>
<% else %>
<li class="$LinkingMode"><a href="$Link" title="{$Title}">$MenuTitle</a>
<% end_if %>
</li>
<% end_control %>
</ul>
<% else %>
<% if Title = Home %>
<ul id="Menu2"><li class="$LinkingMode"><a href="$Link" title="{$Title}">Welkom</a></li></ul>
<% else %>
<ul id="Menu2"><li class="$LinkingMode"><a href="$Link" title="{$Title}">$Title</a></li></ul>
<% end_if %>
<% end_if %>
[/html]Thanks for the support!
-
Re: Double menu on login page

27 July 2007 at 9:57am
I'm not entirely sure what you are trying to do with the chunk after the else, but try moving that bit out of the Level(2) check.
| 1554 Views | ||
|
Page:
1
|
Go to Top |


