Dec 04, 2008, 12:42 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1] 2   Go Down
  Print  
Author Topic: Drop down menu snippet  (Read 3983 times)
0 Members and 1 Guest are viewing this topic.
Robsta
Full Member
***
Posts: 117


WWW
« on: Dec 01, 2005, 07:59 AM »

Can anyone recommend a good drop down menu snippet?
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #1 on: Dec 01, 2005, 08:27 AM »

DropMenu, of course!
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Robsta
Full Member
***
Posts: 117


WWW
« Reply #2 on: Dec 01, 2005, 08:33 AM »

DropMenu, of course!
Does it? I looked at it, but decided it didn't do the menu drop down bit... will look at it again. Are there any exmples?
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #3 on: Dec 01, 2005, 09:04 AM »

It does whatever you want.  It's all in the CSS.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Robsta
Full Member
***
Posts: 117


WWW
« Reply #4 on: Dec 01, 2005, 09:18 AM »

It does whatever you want.  It's all in the CSS.
I'm after a horizontal top level menu with a drop down list from each section on mouse hover. Would i use the float CSS style to get it to drop down?
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #5 on: Dec 01, 2005, 11:36 AM »

You would float the first row, use display:none to hide the rest, then hover classes with display:block to make the dropdowns.  There are plenty of good tutorials on the Internet, use Google with "css dropdown menu" as the search.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Robsta
Full Member
***
Posts: 117


WWW
« Reply #6 on: Dec 01, 2005, 12:41 PM »

You would float the first row, use display:none to hide the rest, then hover classes with display:block to make the dropdowns.  There are plenty of good tutorials on the Internet, use Google with "css dropdown menu" as the search.
Thank you Susan, you're a star!... today I've learnt something new.  Grin
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
rthrash
Foundation
*
Posts: 9,577



WWW
« Reply #7 on: Dec 01, 2005, 01:09 PM »

How many times do I have to say it: she's a ninja! Wink
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #8 on: Dec 01, 2005, 01:45 PM »

Well, I guess one out of four isn't too bad...
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Robsta
Full Member
***
Posts: 117


WWW
« Reply #9 on: Dec 02, 2005, 05:50 PM »

Some things are never as simple as they seem. CSS stylng a drop down menu is a complete nightmare! I gave up on using the Dropmenu, so I tried ListMenu. Was more successful with that one, but still no cigar. IE is terrible!

So I eventually thought I'd try phplayersmenu and got it working. Not quite the nice simple solution, but does what I need.

Or so I thought. It's presenting me with a problem. When some documents become parents, the addressing for those documents becomes completely messed up. For example, three documents, nothing significant about them, fairly empty documents all using the same template. One document used as the child, it all works fine, but if I then move it to the other document as a child, the previous parent ID (or FURL name, I tried FURLS disabled and enabled) get's transfered to the new parent, with a hash '#' suffix. Move the child back, all fine again. Tried two new documents, same issue occurred.

All three snippets are non-uncached.

 Huh Huh Huh

I'm glad it's weekend now. It means I have two days to sort it all out!  Angry DOH!

I might try transmenu next.
« Last Edit: Dec 03, 2005, 05:44 AM by Robsta » Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
rthrash
Foundation
*
Posts: 9,577



WWW
« Reply #10 on: Dec 02, 2005, 09:33 PM »

Try this on for size ... DropMenu was built to make generating the html automatic for menus like the first one below. (When using the right calls of course!) This was done by my good buddy John Gallant who I did the Mac testing for on the article:

http://www.positioniseverything.net/css-dropdowns.html

Note that you can even hover off of the menus a little bit and still maintain their dropped down state. Very cool stuff!

Another CSS menu is a bit more crazy and is on a customer's site: http://landplan.net/ It shows 4 or 5 different techniques and variations of styling UL based navigation, including the last double column. That's a MODx site, too, using an early precursor to DropMenu. Could do that one now without having to hack up the code in DM I think.
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
sottwell
Documentation Team
*
Posts: 8,170



WWW
« Reply #11 on: Dec 02, 2005, 11:09 PM »

That's GORGEOUS!
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Robsta
Full Member
***
Posts: 117


WWW
« Reply #12 on: Dec 03, 2005, 05:47 AM »

Wow, that landplan menu is fantastic... very impressive.

I'll have another go with dropmenu, thanks for the links.
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
rthrash
Foundation
*
Posts: 9,577



WWW
« Reply #13 on: Dec 03, 2005, 08:06 AM »

Might I suggesst never trying to reproduce a menu like landplan... I was determined to make it work and there are SO many tricks employed to getting it to do so and also are what spurred the commented out force stuff at the bottom of the main htaccess file... causes images to stop flickering on hover in IE... andother one of it's nice "features"
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
Robsta
Full Member
***
Posts: 117


WWW
« Reply #14 on: Dec 03, 2005, 08:08 AM »

Might I suggesst never trying to reproduce a menu like landplan...
I wouldn't know where to start! LOL!
Logged

Visit CubeCartForums.org to talk serious ecommerce!
Spot the biggest mistake in business... "Backups? I'm far too busy to take backups!"
www.inspired-solutions.net
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!