sdebacker / TypiCMS

Multilingual CMS built with Laravel 4.2
MIT License
474 stars 119 forks source link

Suggestion: add Nested Set childs to Categories #101

Closed feryonline closed 9 years ago

feryonline commented 9 years ago

I'm sorry for my bad english!

is possible to add 4 level childs to the categories?

Example:

Projects = Root

|_ Child 1
    |_ Child 1.1
        |_ Child 1.1.1
            |_ Child 1.1.1.1
            |_ Child 1.1.1.2
        |_ Child 1.1.2
        |_ Child 1.1.3
    |_ Child 1.2
    |_ Child 1.3
    |_ Child 1.4
        |_ Child 1.4.1
        |_ Child 1.4.2
    |_ Child 1.5

|_ Child 2
    |_ Child 2.1
    |_ Child 2.2
        |_ Child 2.2.1
        |_ Child 2.2.2
    |_ Child 2.3
        |_ Child 2.3.1
    |_ Child 2.4

I think the Baum (https://github.com/etrepat/baum) is a good implementation of the Nested Set to do this. or any other way is there to do this?

sdebacker commented 9 years ago

Categories are not nestable out of the box. TypiCMS uses adjacency lists (for pages, and menulinks) in place of nested sets.

feryonline commented 9 years ago

Hi @sdebacker , thank you very much for your advice. so I can not add 4 or 3 level childs to the categories of TypiCMS in myself project via editing category module?!

sdebacker commented 9 years ago

Yes, you have to develop it by yourself. Have a look at menulinks and pages modules.

feryonline commented 9 years ago

Ok, thank you very much dear @sdebacker I'm trying to develop it

trippo commented 9 years ago

@feryonline see my new implementation on https://github.com/trippo/TypiCMS