fritzmg / contao-news-sorting
Sort settings for the Contao news list.
Fund package maintenance!
fritzmg
Installs: 4 212
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 2
Open Issues: 0
Type:contao-module
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.9 || ^5.0
- contao/news-bundle: ^4.9 || ^5.0
- doctrine/dbal: ^2.10 || ^3.0
- inspiredminds/contao-news-filter-event: ^1.1
- symfony/config: ^4.4 || ^5.1 || ^6.0
- symfony/dependency-injection: ^4.4 || ^5.1 || ^6.0
- symfony/http-kernel: ^4.4 || ^5.1 || ^6.0
Requires (Dev)
- codefog/contao-news_categories: ^3.0
- contao/manager-plugin: ^2.11
- friendsofphp/php-cs-fixer: ^3.0
- rector/rector: ^0.14.5
Conflicts
- codefog/contao-news_categories: <3.0 || >= 4.0
- contao/manager-plugin: <2.11 || >= 3.0
README
Contao News Sorting
Contao extension to allow additional sort settings in the news list. This setting is then applied via the NewsFilterEvent
.
The following settings are available:
- Date (descending)
- Date (ascending)
- Headline (ascending)
- Headline (descending)
- Random
- Random (Date descending)
- Featured
- Custom (Date ascending)
- Custom (Date descending)
Some of these settings are already available in some Contao 4 versions. The extension is fully compatible with that and only uses the hook when necessary.
When using the Custom sort setting you can switch the sorting in the back end to Sorting value (do not forget to apply) and then sort the news articles via drag & drop in the back end.
Note: install inspiredminds/contao-categories-news-filter
to restore compatibility with codefog/contao-news_categories
.