Skip to content

fritzmg/contao-news-sorting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.