scoumbourdis / grocery-crud

Grocery CRUD is a PHP Codeigniter Framework library that creates a full functional CRUD system without the requirement of extra customisation to the JavaScripts or the CSS to do it so.
http://www.grocerycrud.com
GNU General Public License v3.0
1.01k stars 472 forks source link

Add tree rapresentation features for handle hierarchical data #74

Open lucaweb85 opened 12 years ago

lucaweb85 commented 12 years ago

Make a field rapresentation for hierarchical data like "Nested Set Model".

For example: Manage category and subcategory and assign to products (1-n or n-n relations).

scoumbourdis commented 12 years ago

I don't know if you also known that I have a work around for this as a forum topic http://www.grocerycrud.com/forums/topic/303-extra-categories-and-subcategories-dropdown-list/

lucaweb85 commented 12 years ago

That was a good work around, but i think we need a good solution for rapresent the list of category and subcategory. A good solution can be rapresent by this jquery plugin http://www.jstree.com/.

look the "PHP & mySQL demo + event order" Example http://www.jstree.com/demo

Ans this can be a good soltuton for n-n relations http://www.jstree.com/documentation/checkbox when associate products to category.