Incorrect display of news main categories. Parent will be shown, but shouldn't.
Opened this issue · 3 comments
Hello,
I tried to create a module that only shows the elements (persons) that are assigned to the "Bauausschuss" supercategory:
In this case, "Egon Sinnermann" will be showed into "Bauausschuss" as well, not only in "AK Märkte" or "AK Stadtentwicklung".
Is it a bug or did I miss something? Do I need to adjust something? Have a look at this Frontend:
I hope you help me further,
LocoLars
I think by design every parent-category is inherited.
That's what the news_includeSubcategories
setting would be for. However, this setting currently only works for active filtering, but not for the default filtering. The setting is currently not considered in NewsCriteria::setDefaultCategories
. I am not sure if that is by design or not.
Thanks for your answer.
> If you can't achieve the desired results you should probably flatten your hirarchy.
Yes, but I have many different news categories that have nothing to do with each other. Bringing this to a simple hierarchy would be very confusing for editors.
>That's what the news_includeSubcategories setting would be for. However, this setting currently only works for active filtering, but not for the default filtering. The setting is currently not considered in NewsCriteria::setDefaultCategories.
Is there any documentation explaining how to use the different options?