Better way of doing this? (menu and submenus)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux