yiiext / nested-set-behavior

AR models behavior that allows to work with nested sets tree.
http://www.yiiframework.com/extension/nestedsetbehavior/
BSD 3-Clause "New" or "Revised" License
157 stars 64 forks source link

Visualization of tree #34

Closed gb5256 closed 7 months ago

gb5256 commented 10 years ago

Hello out there. First of all: thanks for this extensions. This is awesome. I am currently using jstree-nested-behaviour, but that code is a mess. Yours here look so much better.

I do have one question: What do you guys use to visualize the tree? Dynatree? Jstree? Something else? Both have their pros and cons (my fav is dynatree and feed it with a JSON ). Do you have suggestions?

thanks, gb5256

MetaCrawler commented 10 years ago

I'm a beginner regarding Yii so I'm not sure if this helps you.

For a simple display of the tree I use CTreeView from Yii... Like described here: http://blog.abdullahsolutions.com/2012/09/using-ctreeview-with-nestedsetbehavior.html

For Admin Issues I use QTreeGridView: http://quantum13.ru/page/qtreegridview-rasshirenie-dlja-adminki-yii-dlja-raboty-s-derevjami-nested-sets

It is in russian, but with google translate you can get it working pretty fast.

Regards

motin commented 9 years ago

Check out @cornernote's http://cornernote.github.io/yii-menu-module/ for a sample implemetation of a nested set tree visualization