In my CMS I want to be able to create pages, and then use these pages as parent categories, that can have child pages, I want this to go three levels, e.g.
cars > toyota > camry
All the pages and categories are treated the same, and are in the same table. There is a column called category, which is the id of the parent page.
My question is, how can I associate the categories with pages to create a drop down box like:
cars
audi
bmw
toyota
bikes
honda
trucks
ford
etc.
I just cant work out the code to match them.