Nested sets - update/move nodes with child nodes - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Nested sets - update/move nodes with child nodes (/showthread.php?tid=782) |
Nested sets - update/move nodes with child nodes - Lykos22 - 01-16-2015 Hi all, I'd like some feedback please, if possible. I'm trying to manage menu items (add new, update and delete items) using nested sets. I have followed these articles http://mikehillyer.com/articles/managing-hierarchical-data-in-mysql/ http://www.sitepoint.com/hierarchical-data-database/ which helped me build the required queries and created the functionality for adding new nodes and delete existing ones. The problem is that I can't figure out how to do the update functionality, for instance to move a node (either is root node or child node) and all its child nodes/menu items under another node (so the selected node will become a child one) or organize order of the nodes on each level etc. thanks in advance RE: Nested sets - update/move nodes with child nodes - Rufnex - 01-16-2015 Try this library https://github.com/olimortimer/ci-nested-sets |