Hi,
I have a single table that contains Pages. Any page can have child pages (nth levels).
Root pages have a parent_page of 0.
id-----parent_page-----level-----title
--------------------------------------------------------------
1------0--------------------1----------About Us
2------1--------------------2----------Industries
3------1--------------------2----------Presence
4------2--------------------3----------Know-How and Technologies
I'm trying to get child pages ordered under their parent. Does anyone have some ninja sql skills to make this happen?
Thanks,
Matt
I have a single table that contains Pages. Any page can have child pages (nth levels).
Root pages have a parent_page of 0.
id-----parent_page-----level-----title
--------------------------------------------------------------
1------0--------------------1----------About Us
2------1--------------------2----------Industries
3------1--------------------2----------Presence
4------2--------------------3----------Know-How and Technologies
I'm trying to get child pages ordered under their parent. Does anyone have some ninja sql skills to make this happen?
Thanks,
Matt