开发者

Using nestedset for site navigation

开发者 https://www.devze.com 2022-12-16 05:20 出处:网络
I would lik开发者_JAVA技巧e to use a nested set to manage the navigation of a website. Would it be better to have a single page model and just make the parent names define the sections of the site or

I would lik开发者_JAVA技巧e to use a nested set to manage the navigation of a website. Would it be better to have a single page model and just make the parent names define the sections of the site or would it be better to have a category model which can be nested and a separate page model, each of which belong to a category?

Any advice appreciated. Thanks.


I think that the sets in NestedSet are well suited for defining the structure of your pages (ie. building navigation and such). If you find that you have the need to categorize your pages, you can use another NestedSet to store that structure.

0

精彩评论

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