CodeIgniter Forums
CMS logic, navigation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: CMS logic, navigation (/thread-22157.html)



CMS logic, navigation - El Forum - 08-31-2009

[eluser]asylmottaket[/eluser]
Hello people

Making a totally dynamic navigational structure, how do you do this?

Is it as simple as making a table named ex. "navigation", than adding both URLs and relations to it?


CMS logic, navigation - El Forum - 09-01-2009

[eluser]Enorog[/eluser]
You probably want to structure your pages into some kind of tree (main pages, subpages, sub-sub pages etc.)

There is a lot of approaches to doing this, I was researching this myself and found the following links useful:

Tree structure solution in mysql and php
http://forums.digitalpoint.com/showthread.php?t=1317234

Tree menu view with PHP and MySQL - Ext JS Forums
http://extjs.com/forum/showthread.php?t=10082

Storing Hierarchical Data in a Database [PHP & MySQL Tutorials]
http://www.sitepoint.com/article/hierarchical-data-database/

Four ways to work with hierarchical data - evolt.org
http://www.evolt.org/article/Four_ways_to_work_with_hierarchical_data/17/4047/index.html

Alan deLevie - Recursion-less storage of hierarchical data in a relational database
http://www.alandelevie.com/2008/07/12/recursion-less-storage-of-hierarchical-data-in-a-relational-database/