inspiredminds/contao-sibling-navigation

Provides a previous/next navigation for news & events.

Fund package maintenance!
fritzmg

Installs: 2 502

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 4

Forks: 0

Open Issues: 3

Type:contao-bundle

1.3.7 2024-04-10 08:50 UTC

This package is auto-updated.

Last update: 2024-11-10 09:56:42 UTC


README

Contao Sibling Navigation

Provides a previous/next navigation for news & events.

Installation

Require the bundle via composer:

composer require inspiredminds/contao-sibling-navigation

If you use the Contao Standard Edition, you will have to add

new InspiredMinds\ContaoSiblingNavigation\ContaoSiblingNavigationBundle()

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:

http://example.org/news/detail/foo.html?category=1,3

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.