Developer forum

Forum » Templates » menu selected

Reply

hi!

 

is there any way to make a menu selected once the page (frontpage) loads?

 

say I have:

 

menu1

    sub1

    sub2

menu2

    sub3

    sub4

 

and I want to have menu1 selected on startup?

 

-jan


Replies

 
Nicolai Høeg Pedersen
Reply
magenta wrote:

hi!

 

is there any way to make a menu selected once the page (frontpage) loads?

 

say I have:

 

menu1

    sub1

    sub2

menu2

    sub3

    sub4

 

and I want to have menu1 selected on startup?

 

-jan

Hi Jan
 

Possible solutions:

 

1st: The fist menuitem in a languagelayer is selected when the frontpage loads - so if you sort menu1 to the top of the languagelayer, that should happen.

 

2nd: If you for some reason cannot do that, you can redirect the firstpage to the menu item using redirect on edit page.

 

3rd: If you want to display content from the first item in the language layer (the frontpage), and want another menu item to be selected in navigation - but not showing its content - you will have to implement this feature in a XML/XSLT based navigation. Then the XSLT can make sure that this will happen.

 

Hope i've understood you correctly. Otherwise provide a link.

 
Reply
np wrote:
magenta wrote:

hi!

 

is there any way to make a menu selected once the page (frontpage) loads?

 

say I have:

 

menu1

    sub1

    sub2

menu2

    sub3

    sub4

 

and I want to have menu1 selected on startup?

 

-jan

Hi Jan
 

Possible solutions:

 

1st: The fist menuitem in a languagelayer is selected when the frontpage loads - so if you sort menu1 to the top of the languagelayer, that should happen.

 

2nd: If you for some reason cannot do that, you can redirect the firstpage to the menu item using redirect on edit page.

 

3rd: If you want to display content from the first item in the language layer (the frontpage), and want another menu item to be selected in navigation - but not showing its content - you will have to implement this feature in a XML/XSLT based navigation. Then the XSLT can make sure that this will happen.

 

Hope i've understood you correctly. Otherwise provide a link.

Thanks! Your first suggestion did the trick!
 

 

 

cheers

-jan

 

You must be logged in to post in the forum