Better way of doing this? (menu and submenus)
| From: | Ryan A | Date: | Wed, 21 Jun 2006 16:18:01 +0000 |
| Subject: | Better way of doing this? (menu and submenus) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-238478@lists.php.net to get a copy of this message | ||
Hello,
First off, I admit this is not going to be as
interesting as the "helping someone" thread, and
hopefully there is not going to be any talk of DDOS or
flaming
:-p
Ok, here goes, I have never done anything _exactly_
like this but since typo 3 has this kind of
functionality (and i have never used typo 3 myself)
I'm guessing some of you would be able to help me out,
or guide me...If i'm wrong, just ignore this thread.
Heres what i have; I have a table with the main
(parent) categories and another table with the
sub-categories (children) which will/is supposed to be
"compiled" into a navigation menu and then be
displayed on the left side of each and every page on
the site.
There are around 15 parents and X children under each
parent, children content have upto 10 links on their
own pages.
I was thinking of passing three valiables on each page
for the above:
parent_id (int)
display_children (1=yes 0=no)
active_sub-menu (string or int, depending on the DB
structure)
and accordingly build and display the menu.
Am I on the right track or missing something? Advise,
links and suggestions welcome.
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com