wbgym/pagenews-bundle
Composer 安装命令:
composer require wbgym/pagenews-bundle
包简介
Displays tagged news on every page with the codefog/contao-news_categories bundle..
README 文档
README
Extension for the codefog/contao-news_categories bundle.
With this extension, you can show the latest news from a specific topic on a page that shows information on that topic.
Additionally, there are some more useful news features. The extension uses the category system of the codefog\contao-news_categories bundle to categorize the news.
Features
- Set a maximum age for news in a newslist. Elements that are older than the maximum age are not shown.
- Automatically generate a teaser if no teaser is set.
- Mark "current" category in categories menu.
Usage (example)
- Create a newslist module and set maximum age (if needed).
- Insert a content element "news-module-filter" (from the codefog bundle) and choose the newly created newslist module
- Set the "standard filter", consisting of one category, and activate it.
- Important: Set the Category target page in the content element, even if it is already set in the module. The setting is not inherited for some reason.
New Template vars
- newslist template:
tagTitle- the title of the current "standard-filter" categorytagAlias- the alias of the current "standard-filter" category
- news template:
cutTeaser- a cut-of one-line teaser with max. 200 chars- the standard
teasercontains a generated "beautiful" teaser if no custom teaser is set in the news record
- category navigation template (level 1):
activeItemcontains the object of the currently active filter category, if set in the URL
Note
The project is still WIP.
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2018-09-08