HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Hover drop down menus

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#88977 (In Topic #18015)

Non-joined user

Hi,
Is there an easy way or just simply "a way" of being able to create drop down menu rather like the one in the adminzone?
IE hover over and it expands to show sub menu????

Cheers
Dave
Back to the top
 
Posted
Item has a rating of 5 (Liked by Chris GrahamLiked by FletchLiked by JeanLiked by Guest)  
Rating:
#88980
Avatar

Community saint

Drill into Admin Zone Structure Menu management. Select a menu to edit or create a new one. I created a new one for this example.

To create the child levels (see first image) you need to select the parent level and then select "contracted branch" under the "branch type" (see second image). Fill in the remaining fields as needed and save.



When adding the menu, in the comcode editor, click the "add block" button and scroll down to "Menus" and click "Menu (side_stored_menu)". Select type "dropdown" and then select the menu you edited or created earlier. Preview and/or save.


Steve
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#89003

Non-joined user

Fantastic, thank you so much.
Something so simple, yet I was miles off the mark.

Thanks again
Dave
Back to the top
 
Posted
Item has a rating of 5 (Liked by sholzy)  
Rating:
#89004

Non-joined user

Is it possible to only show the created menu, when a user is logged in?

Theres no way Ive found of being able to "make invisable" a menu when a user is not logged in…

Cheers in advance
Back to the top
 
Posted
Item has a rating of 5 (Liked by FletchLiked by JeanLiked by Guest)  
Rating:
#89005
Avatar

Community saint

Enclose it in the "if_in_group" tags.

Steve
Back to the top
 
Posted
Rating:
#89006

Non-joined user

Back to the top
 
Posted
Rating:
#89007

Non-joined user

Back to the top
 
Posted
Rating:
#89008

Non-joined user

Cant get it to work :(
I cant post the code for some reason...Could you possible give an example???
Sorry to be a pain, cant you tell I'm new to this :o)
Back to the top
 
Posted
Item has a rating of 5 (Liked by JeanLiked by pawan)  
Rating:
#89009
Avatar

Community saint

[if_in_group=2+] your menu code here [/if_in_group]

The "2+" will show the menu to all but guests. The number is the group number.

Steve
Back to the top
 
Posted
Rating:
#89010

Non-joined user

God bless you sir, your a saint
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: