开发者

Reordering in Hierarchical category structure

I have a category table that use Hierarchical structure with right and left field.

What开发者_StackOverflow should I do if I want to reorder two fields and how should I manage left and right field values?


Since you're using left and right, you're probably modelling this as a Nested Set. The top answer to this question about nested sets has a nice method for moving nodes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜