heimrichhannot / contao-news-list-reader-bundle
此插件增强了contao新闻实体的列表和阅读器插件的支持。
1.3.1
2024-03-07 09:08 UTC
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.9
- heimrichhannot/contao-head-bundle: ^1.11
- symfony/event-dispatcher: ^4.4 || ^5.4
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.
README
此插件包含用于列表和阅读器插件的项目类,以更好地支持contao新闻实体。
功能
- 新闻列表项目类
- 新闻阅读器项目类
- 可以与这两个插件中的一个或两个一起使用
用法
安装
使用composer或Contao Manager安装
composer require heimrichhannot/contao-news-list-reader-bundle
设置
- 创建或编辑一个列表或阅读器配置,并选择新闻列表项目/新闻阅读器项目作为项目类
- 您可以使用提供的news_*模板之一。
开发者
自定义项目类
您可以使用NewsItemTrait
将特定于新闻的列表/阅读器字段添加到您的自定义项目类中。