heimrichhannot / contao-news-list-reader-bundle
This bundle enhances the support of list and reader bundle for the contao news entity.
Package info
github.com/heimrichhannot/contao-news-list-reader-bundle
Type:contao-bundle
pkg:composer/heimrichhannot/contao-news-list-reader-bundle
1.5.2
2025-03-07 09:39 UTC
Requires
- php: ^8.1
- contao/core-bundle: ^4.13.46
- contao/news-bundle: ^4.13
- heimrichhannot/contao-head-bundle: ^1.11
- symfony/event-dispatcher: ^4.4 || ^5.4
Requires (Dev)
None
Suggests
- heimrichhannot/contao-list-bundle: This bundle offers a generic list module to use with arbitrary contao entities containing standard list handling like pagination, sorting, and filtering.
- heimrichhannot/contao-reader-bundle: This bundle offers a generic reader module to use with arbitrary contao entities containing standard reader specific functionality like field output, images and auto_item handling.
Provides
None
Conflicts
None
Replaces
None
README
This bundle enhance the news support of list and reader bundle. It applies news adjustments (from contao news bundle) to the list and reader items.
Features
- list item class for news
- reader item class for news
- can be used with one or both of these bundles
Usage
Install
Install with composer or Contao Manager
composer require heimrichhannot/contao-news-list-reader-bundle
Setup
- Create or Edit a list or reader config and select NewsListItem/NewsReaderItem as item class
- Select 'Use news extension' in the list or reader config
- You can use one of the provided news_* templates
Developers
Custom Item classes
You can usee the NewsItemTrait to add news specific list/reader field to your custom item class.