codefog/contao-news_categories

No filtering when setting order to "sorting" Contao 5.3.19

Opened this issue · 7 comments

I updated a project from Contao 4.13 to 5.3.19 and am currently having an issue with category filters.
When setting the order to "sorting" (Suchindex) the filtering isn't working anymore and all elements in the newsarchive are being displayed. When setting it to another order, it works again. This doesn't happen in Contao 4.13.

What could be the problem?

What do you mean by "sorting (Suchindex)"?

It is the setting of the ordering in the newslist module
ksnip_20241213-132216

There is no setting like that by default. This seems to be from an extension or an application adjustment. You will need to make sure that the extension or your own adjustment works together with the codefog/contao-news_categories extension.

One way to do that would be via inspiredminds/contao-categories-news-filter.

If your "Sortierindex" setting stems from an extension or adjustment that allows news to be sorted by a custom order, you can instead switch to the fritzmg/contao-news-sorting extension, which has the same feature. Note that you will still have to install inspiredminds/contao-categories-news-filter for support for codefog/contao-news_categories (see the README).

Thank you for your answer.
Surprisingly after installing inspiredminds/contao-categories-news-filter the filter works again even when setting "Sortierindex" as the order.
Anyway I don't fully understand the context.
We will keep that in mind and will install that package as well on other projects running Contao 5.3.

Thank you

Anyway I don't fully understand the context.

Post your current composer.json

this is my composer.json after installing inspiredminds/contao-categories-news-filter. Without that package we had the issues as described.

{
"type": "project",
"require": {
"contao/calendar-bundle": "^5.0",
"contao/comments-bundle": "^5.0",
"contao/conflicts": "@dev",
"contao/faq-bundle": "^5.0",
"contao/listing-bundle": "^5.0",
"contao/manager-bundle": "5.3.
",
"contao/news-bundle": "^5.0",
"contao/newsletter-bundle": "^5.0",
"codefog/contao-news_categories": "4.0.7",
"terminal42/contao-leads": "^3.0",
"terminal42/notification_center": "*",
"inspiredminds/contao-categories-news-filter": "^1.1"
},
"extra": {
"contao-component-dir": "assets"
},
"scripts": {
"post-install-cmd": [
"@php vendor/bin/contao-setup"
],
"post-update-cmd": [
"@php vendor/bin/contao-setup"
]
},
"config": {
"allow-plugins": {
"contao-components/installer": true,
"php-http/discovery": true,
"contao/manager-plugin": true,
"contao-community-alliance/composer-plugin": true
}
}
}

From your composer.json it is not clear where your "Sortierindex" setting comes from.

In any case, this is something you should investigate further or may be ask on the Contao Community Forum or Contao Community Slack for help.