Open grashalm4u opened 2 months ago
I noticed that in the following file there is a wrong template assignment in line 30 for my terms. Or is that intended? /vendor/codefog/contao-news_categories/src/frontendmodule/cumulativehierarchicalfiltermodule.php
This is only the default template config, what you select in the back end later overrides this value.
Your setup sounds like a highly specific use case, I don't think we will be able to help here. I would suggest to debug this yourself or have a Contao developer do it for you. If you find a bug, feel free to send us a pull request for the fix 😊
I think I haven't formulated my request clearly enough. As soon as I find time, I will clarify it again.
I'll try to describe the main error again: I created categories and subcategories with the news categories. When I use the "news-categories-cumulative-hierarchical" module, no active categories are displayed above my two filter togglers. However, this is the case with the "news-categories-cumulative" module. In addition, the intersection of the number of all available texts is calculated incorrectly for several selected topic categories. If desired, I can provide access to a test installation.
I use the news module together with the News Categories (version 4.0.6) on my page (Contao 5.3.11) and now would like to use sub-categories. I filter my texts primarily on topics (selection of several possible) and on years (only one year possible). As long as I use the cumulative category filter, the number of texts in different combined categories are displayed correctly in the frontend and the active categories above the toggler are displayed correctly. Of course, no subcategories appear in this module selection.
However, if I use the cumulative hierarchical category of filters as a modular type, all subcategories are displayed. When selecting 2 categories ("Schönes" and "Lustiges"), the corresponding 5 texts are correctly selected as an intersection and correctly displayed in the news list, but the number of intersection is not calculated properly behind the second category, but still displayed the original number (61). In addition, the active categories are not output above the toggler, but remain in the list and are marked in bold.
I noticed that in the following file there is a wrong template assignment in line 30 for my terms. Or is that intended? /vendor/codefog/contao-news_categories/src/frontendmodule/cumulativehierarchicalfiltermodule.php