Download the PHP package inspiredminds/contao-sibling-navigation without Composer
On this page you can find all versions of the php package inspiredminds/contao-sibling-navigation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inspiredminds/contao-sibling-navigation
More information about inspiredminds/contao-sibling-navigation
Files in inspiredminds/contao-sibling-navigation
Package contao-sibling-navigation
Short Description Provides a previous/next navigation for news & events.
License LGPL-3.0-or-later
Homepage https://github.com/inspiredminds/contao-sibling-navigation
Informations about the package contao-sibling-navigation
Contao Sibling Navigation
Provides a previous/next navigation for news & events.
Installation
Require the bundle via composer:
If you use the Contao Standard Edition, you will have to add
to your AppKernel.php
.
Usage
Simply create a News sibling navigation or Event sibling navigation module and integrate it in your page layout or as an include element. If you do not select any news archives or calendars, the sibling navigation will automatically use the news or event entries' archive/calendar.
News Categories features
The sibling navigation can be further limited by providing one or more news category IDs via a GET parameter called category
. Example:
This will limit the previous and next links to news items that have categories with the ID 1
and 3
assigned.
Custom Templates
If you want to use a custom template, the name of the copy of mod_sibling_navigation.html5
has to be modified that the first part of the name is either mod_sibling_navigation_events
or mod_sibling_navigation_news
depending on whether your customized template should be used for the events or news sibling navigation.
Acknowledgements
Development funded by Jan Kout.