El Dorado

A full-stack community web application written in Ruby/Rails
Unlimited subcategories and subforums « El Dorado « almost effortless
 
Wed, 20 Aug 2008, 10:39pm #1
carlivar
New member
Registered: Aug, 2008
Last visit: Thu, 21 Aug 2008
Posts: 2

Any interest in some additional features with the category and forum models?

I modified Beast a while back to support unlimited nested categories, subcategories, and subfolders. After trying out El Dorado, I was thinking I could do the same thing here.

Here's what I had in mind:

-Instead of the "position" attribute, use a Nested Set model. This way the entire tree structure can be loaded at once, plus it's easy to move positions & parents around. I prefer the BetterNestedSet plugin.
-The Category/Forum new/edit form would have a couple fields: "parent forum/category" and "insert before <forum/category list>". No more need to remember position numbers.
-The big difference in my mind would be eliminating the Category model completely. Categories would just be forums with forum.category == true. Forums that are categories would not allow posts and are displayed differently of course. This allows them to fit into the tree structure seamlessly, and you can have folders as children of categories as children of forums as children of categories and so on.
-Of course some view tweaks to indent or otherwise indicate each "level" of the forum or category.

Any interest?

Offline
Wed, 20 Aug 2008, 10:57pm #2
Trevor
Administrator
Wait-ill-fix-it
Registered: Sep, 2005
Last visit: 2 hours ago
Posts: 240

That would be terrific. I was hoping to eliminate the category model in any case so that I could use it for the blog. I'm not sure what you'd do with the forum views, but I'm not at all married to the way they work now, so... I hope to see something come of this - let me know if you have any questions!

Offline
Wed, 20 Aug 2008, 11:10pm #3
carlivar
New member
Registered: Aug, 2008
Last visit: Thu, 21 Aug 2008
Posts: 2

OK I will hack at it and get you a patch when I have something...

And thanks for the great code! I really like your forum.

Offline
Thu, 04 Sep 2008, 3:48pm #4
danoo
New member
Registered: Sep, 2008
Last visit: Thu, 09 Oct 2008
Posts: 1

Carlivar: Do you have this patch with "support unlimited nested categories, subcategories, and subfolders" for Beast available to public ?

thanks

Offline
Fri, 14 Nov 2008, 9:17am #5
circoloco
New member
Registered: Sep, 2008
Last visit: Fri, 14 Nov 2008
Posts: 2

carlivar wrote:

I modified Beast a while back to support unlimited nested categories, subcategories, and subfolders.

I would be interested in that mod too. Exactly what I plan to do with an older, also modded beast installation. Would be great if you could email me at jens/at/doka.org

Jens

Offline
Fri, 14 Nov 2008, 2:25pm #6
Trevor
Administrator
Wait-ill-fix-it
Registered: Sep, 2005
Last visit: 2 hours ago
Posts: 240

If anyone takes this task up, it would be best for me if you forked my repo on Github and sent me a message letting me know what you're up to.

http://github.com/trevorturk/el-dorado/tree/master

Offline