Most forums, like drupal.org's own forums, have one or several containers at the top level, and each containers contain several forums.

But if a site has very deeply embedded forums (forums within containers, within container, within containers, etc..) and at each level many containers and forums (more than your average web site), the page at ?q=forum quickly becomes unwieldy and hard to browse.

This patch displays forums up to a certain depth, and sub-forums are discovered when going into their parent containers/forums. The depth limit is set at 2 in this patch, but could be more, or could even be configurable.
This patch would not affect at all sites like drupal.org whose forums layout is simple (one level of containers, and one level of forums).

There is maybe a better, more complete approach (one that displays the mention: "there are %d sub-forums", like other popular forums do, e.g. phpBB3), but I didn't see any obvious, simple way to achieve this.

CommentFileSizeAuthor
forum_depth.diff.txt1.16 KBbeginner

Comments

Kjartan’s picture

Category: bug » feature

This is a feature request and not a bug.

The depth setting should probably be a config setting.

bdragon’s picture

Version: x.y.z » 6.x-dev
Status: Needs review » Needs work

Autopatch Results for forum_depth.diff.txt:
patching file modules/forum/forum.module
Hunk #1 FAILED at 954.
Hunk #2 succeeded at 999 (offset 34 lines).
1 out of 2 hunks FAILED -- saving rejects to file modules/forum/forum.module.rej

catch’s picture

subscribing.

chx’s picture

Status: Needs work » Closed (won't fix)

I would say if noone works on a patch for 1.5 years then it's won't fix.