Jump to content


Photo

How do I do variable depth menus?


  • Please log in to reply
5 replies to this topic

#1 supertanker

supertanker
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 07 March 2006 - 12:29 AM

I am designing a site (as usual) which will be a freeware directory.

How would I make a menu of main catagories, that someone could click, and then go through as many sub-catagories as needed, and how would I have one of those "you are here" bars along the top with MySQL?



Like, I want to be able to click "Games", and then "FPS", and then maybe some other catagory, (but no fixed 'depth'), and I would like it to be able to keep track of where I am...like the bar on the top of this page:

> PHP Help Forums > PHP and MySQL > PHP Help


I've been at this for 6 months but I am stumped here....

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 07 March 2006 - 12:31 AM

Breadcrumbs is what they're called (as in Hansel & Gretel). A good php example/tutorial can be found [a href=\"http://www.zend.com/zend/spotlight/breadcrumb28.php\" target=\"_blank\"]here at Zend[/a]
Legend has it that reading the manual never killed anyone.
My site

#3 supertanker

supertanker
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 07 March 2006 - 12:38 AM

[!--quoteo(post=352332:date=Mar 6 2006, 07:31 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Mar 6 2006, 07:31 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Breadcrumbs is what they're called (as in Hansel & Gretel). A good php example/tutorial can be found [a href=\"http://www.zend.com/zend/spotlight/breadcrumb28.php\" target=\"_blank\"]here at Zend[/a]
[/quote]

Wait, I can't really divide my site into directories. Is there a way to do it with files instead? In fact, the main part will be powered by a single file...

Should I just put the 'depth' in the URL?

What about multi-level menues? I am aiming for something around the looks of SourceForge

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 07 March 2006 - 12:52 AM

[!--quoteo(post=352334:date=Mar 6 2006, 07:38 PM:name=supertanker)--][div class=\'quotetop\']QUOTE(supertanker @ Mar 6 2006, 07:38 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]What about multi-level menues? I am aiming for something around the looks of SourceForge[/quote]
You might want to take a look at some pure CSS multiple-level menus - at [a href=\"http://www.tanfa.co.uk/css/examples/css-dropdown-menus.asp\" target=\"_blank\"]www.tanfa.co.uk[/a]. Simple, fast, clean, cross-browser, etc.

Legend has it that reading the manual never killed anyone.
My site

#5 supertanker

supertanker
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 07 March 2006 - 01:03 AM

[!--quoteo(post=352337:date=Mar 6 2006, 07:52 PM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Mar 6 2006, 07:52 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
You might want to take a look at some pure CSS multiple-level menus - at [a href=\"http://www.tanfa.co.uk/css/examples/css-dropdown-menus.asp\" target=\"_blank\"]www.tanfa.co.uk[/a]. Simple, fast, clean, cross-browser, etc.
[/quote]

Still not quite what I was looking for, but that might be good...

I meant like I click a catagory, it loads a new page with subcatagories, ect.


#6 supertanker

supertanker
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 07 March 2006 - 02:15 AM

Like here on PHPFreaks, where it says:

PHP Freaks: PHP Help Forums -> Replying in How do I do variable depth menus?

How might I do that on my site?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users