Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect display of news main categories. Parent will be shown, but shouldn't. #230

Open
DonLars opened this issue Jan 30, 2023 · 3 comments

Comments

@DonLars
Copy link

DonLars commented Jan 30, 2023

Hello,

I tried to create a module that only shows the elements (persons) that are assigned to the "Bauausschuss" supercategory:

Bildschirmfoto 2023-01-30 um 13 51 28

In this case, "Egon Sinnermann" will be showed into "Bauausschuss" as well, not only in "AK Märkte" or "AK Stadtentwicklung".

Bildschirmfoto 2023-01-30 um 11 51 43

Is it a bug or did I miss something? Do I need to adjust something? Have a look at this Frontend:

Bildschirmfoto 2023-01-30 um 13 19 50

I hope you help me further,
LocoLars

@asaage
Copy link
Contributor

asaage commented Jan 30, 2023

Is it a bug or did I miss something? Do I need to adjust something?

I think by design every parent-category is inherited.
You can try to play with the newslist-module settings (especialy the last one).
image
If you can't achieve the desired results you should probably flatten your hirarchy.

@fritzmg
Copy link
Contributor

fritzmg commented Jan 30, 2023

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.

@DonLars
Copy link
Author

DonLars commented Jan 31, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants