Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Latest Discussion from sub-category not showing in parent category on home page
Klutz
New
I have my home page set to display all categories, and have some 2 and 3 level deep categories.
Why don't discussions in a sub-category (e.g.: "Honda") show up on the home page as the most recent discussion for the parent category (e.g.: "Cars") ?
I'm using Vanilla 2.1.6
Tagged:
0
Comments
post a screenshot.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
http://vanillaforums.org/discussion/comment/218828/#Comment_218828
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
There are many discussions in the many sub-categories of the "Jasons Jeux+" category.
because the categories layout does not show discussions. if you mean a topic list.
you need to use Mixed Layout for the Categories Layout in dashboard/settings/homepage
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I mean the discussion does not show up in the "Latest Post" column.
The "Jasons jeux" category shows a discussion ("Cadeaux de Noël") in the Latest Post column ("Plus récent"). However, the "Jasons jeux+" category does not show anything in this category. I'm assuming it has to do with the fact the the "Jasons jeux+" category contains no discussions it self, only sub-categories.
I would like posts in the sub-categories of "Jasons jeux+" to appear in the "Latest Post" column of the Category view, on the home page.
your assumption is correct.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Is there a way to "fix" this behaviour?
While I understand it might be the intended behaviour, is there a way for me to get the behaviour my users and I are looking for?
you could try latestpost plugin probably. that might be the easiest.
otherwise change your homepage view to use Mixed Layout for the Categories Layout in dashboard/settings/homepage
I haven't looked into changing it with the view you want. so I can't answer.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I suppose you could get rid of parent category and make it flat.
or make all parents (root)categories headings and make them non postable.
in dashboard categories page.
X Display root categories as headings.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Hmm... That'll add a list to the side bar, which isn't what I want...
My users are used to a more table-like view (similar to what older forums like phpBB offer), I'd really prefer to stick to the table view.
That would be a mess of posts that wouldn't make sense, since many posts assume you know what category they were posted in.
By root category, do you mean top level categories? And have them be shown as titles?
I already do this. My Category hierarchy is pretty deep. I have categories that go 4 levels deep ( / Root category (title) / Category / Sub-category / sub-sub-category ). The home page shows root categories (as titles) and categories. Any sub-categories are listed in a comma-seperated list, and sub-sub-categories are not shown at all.
yes.
! don't have an answer other than some category re-arrangement on your part or use the plugin suggested to mitigate, or someone comes up with a feature request answer.
good luck
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I'll look into the code that fetches the Latest Post from categories to see if it'd be easy to have also look through sub-categories.
I'll also look at how I could re-arrange my categories and limit them to being 2-levels deep.
Thanks for your help!
This seems like an unfortunate limitation of Vanilla Forums
its always unfortunate when things don't show up as you want.
and its always a limitation, if WYSINWYW - what you see is not what you want.
nothing stopping you from filing a feature request on github, or perhaps it is a bug.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
The same behavior also applies to the "Unread" status of parent-categories.
A parent category only receives the "unread" CSS class if it directly contains unread messages.
If a sub-category has unread discussions, the parent category does NOT receive the "unread" CSS class.
The fact that it is the expected behavior of the great majority of forum software out there doesn't help either.
I'm loving Vanilla forums so far. This is one of the first weird quirks that I've found.
I was able to get the behavior I wanted by changing 2 lines in applications/vanilla/models/class.categorymodel.php. Both lines are in the "JoinRecentChildPosts" function, which start approx. on line 390.
I changed
if ($Category['DisplayAs'] == 'Categories') {
toif (true || $Category['DisplayAs'] == 'Categories') {
.And
if ($ChildCategory['DisplayAs'] == 'Categories') {
toif (true || $ChildCategory['DisplayAs'] == 'Categories') {
.This forces Vanilla to merge the recent child posts information, even if child categories are not set to display as categories.