Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fritzmg/contao-news-sorting
Sort settings for the Contao news list.
https://github.com/fritzmg/contao-news-sorting
cms contao contao-module php
Last synced: about 2 months ago
JSON representation
Sort settings for the Contao news list.
- Host: GitHub
- URL: https://github.com/fritzmg/contao-news-sorting
- Owner: fritzmg
- License: lgpl-3.0
- Created: 2017-07-13T15:25:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T13:43:14.000Z (5 months ago)
- Last Synced: 2024-10-14T22:10:17.286Z (2 months ago)
- Topics: cms, contao, contao-module, php
- Language: PHP
- Homepage:
- Size: 51.8 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[![](https://img.shields.io/packagist/v/fritzmg/contao-news-sorting.svg)](https://packagist.org/packages/fritzmg/contao-news-sorting)
[![](https://img.shields.io/packagist/dt/fritzmg/contao-news-sorting.svg)](https://packagist.org/packages/fritzmg/contao-news-sorting)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`](https://github.com/inspiredminds/contao-categories-news-filter) to restore compatibility with [`codefog/contao-news_categories`](https://github.com/codefog/contao-news_categories).