Download the PHP package heimrichhannot/contao-newsnavigation-bundle without Composer
On this page you can find all versions of the php package heimrichhannot/contao-newsnavigation-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-newsnavigation-bundle
More information about heimrichhannot/contao-newsnavigation-bundle
Files in heimrichhannot/contao-newsnavigation-bundle
Package contao-newsnavigation-bundle
Short Description A bundle to provide a navigation between news articles
License LGPL-3.0-or-later
Homepage https://github.com/heimrichhannot/contao-newsnavigation-bundle
Informations about the package contao-newsnavigation-bundle
Contao Newsnavigation Bundle
A contao extension to provide a simple navigation between news articles. It add template variables to go from one news article to the next or the previous article. News article order is calculated by time property.
Features
- add Template variables to NewsReaderModule to jump between news articles
- customize article navigation with custom filters
Installation
Install via composer:
Usage
The bundle provides two new variables for news reader templates: nextArticle
and previousArticle
.
Twig example:
HTML5 example:
Customize article navigation
To customize which articles are shown as next and previous, you can use the NewsNavigationFilterEvent event.
It gets passed a filter instance and the ModuleModel
instance.
To modify the filter, use the methods of the filter object.
Example:
All versions of contao-newsnavigation-bundle with dependencies
contao/core-bundle Version ^4.13 || ^5.0
contao/news-bundle Version ^4.13 || ^5.0
contao/manager-plugin Version ^2.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0
symfony/deprecation-contracts Version ^1.0 || ^2.0 || ^3.0
symfony/event-dispatcher-contracts Version ^1.0 || ^2.0 || ^3.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0
symfony/translation-contracts Version ^1.0 || ^2.0 || ^3.0