inspiredminds/contao-sibling-navigation
最新稳定版本:1.3.7
Composer 安装命令:
composer require inspiredminds/contao-sibling-navigation
包简介
Provides a previous/next navigation for news & events.
README 文档
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.
统计信息
- 总下载量: 4.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2018-01-14