Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Collapsible Panel
This discussion has been closed.
Comments
Now if you're still ready for some coding frenzy... I've got something for you :P
I was playing with Discussion Overview and various addons, trying to turn Vanilla into a kind of blog/forum hybrid, then suddenly thought collapsible categories with Discussion Overview would be freaking awesome.
Does it sound possible? Something like a simple button next to the category title, allowing to collapse/expand the discussions under the category, working the same way than Collapsible Panel. I guess it would make happy everyone who keeps asking for categories on the front page and make an interesting discussions list alternative (and it would make me very happy too.)
Gently collapsing discussions sounds (and looks) way more friendly than "blocking" in my opinion. And the block option doesn't seem to work with Discussion Overview anyway...
In my case I intend to use Discussion Overview to display different categories with role-based access: one for official announcements, several allowing comments but no new discussion, one allowing everything, etc. Compared to the "classic" Vanilla setup, the front page would display the five most recent posts of each of the ten (or around ten) categories. That's also why collapsing would make navigation easier for people who don't want a loooong home page.
As you said, categories not supposed to be seen shouldn't appear (I've tried CategoryRoles for the more specific access settings and it works fine.)
About the accordion effect, maybe it could be a user preference. It sounds nice, but if for example a user is especially interested in two categories, he would have to read them one after the other constantly. Collapsed items staying collapsed and expanded items staying expanded sounds more navigation-friendly.
There would still be some "View all" links for each category block, allowing to go directly to a category's page. Another feature (but this could be a different extension) would be to add a "Browse next category" link at the end of each category page, a bit like Next Unread Discussion but for categories. This way people wouldn't have to come back to the home page to check all posts in a given category.
Thanks for your time!
MooHash is not defined
[Break on this error] var HashCookie = new MooHash.Cookie('CP_Settings', {duration: 3650});