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

No filtering when setting order to "sorting" Contao 5.3.19 #277

Open
cscheibelhut opened this issue Dec 13, 2024 · 7 comments
Open

No filtering when setting order to "sorting" Contao 5.3.19 #277

cscheibelhut opened this issue Dec 13, 2024 · 7 comments

Comments

@cscheibelhut
Copy link

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?

@fritzmg
Copy link
Contributor

fritzmg commented Dec 13, 2024

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

@cscheibelhut
Copy link
Author

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

@fritzmg
Copy link
Contributor

fritzmg commented Dec 13, 2024

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).

@cscheibelhut
Copy link
Author

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

@fritzmg
Copy link
Contributor

fritzmg commented Dec 13, 2024

Anyway I don't fully understand the context.

Post your current composer.json

@cscheibelhut
Copy link
Author

cscheibelhut commented Dec 13, 2024

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
}
}
}

@fritzmg
Copy link
Contributor

fritzmg commented Dec 13, 2024

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.

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

2 participants