janbuecker/sculpin-meta-navigation-bundle
最新稳定版本:v0.9
Composer 安装命令:
composer require janbuecker/sculpin-meta-navigation-bundle
包简介
Sculpin Meta Navigation Bundle
README 文档
README
This bundle creates a multidimensional array based on meta options of pages. It can be implemented using the page.menu twig variable.
Setup
Add this bundle in your composer.json file by requiring it:
composer require janbuecker/sculpin-meta-navigation-bundle ^0.7
Now you can register the bundle in your SculpinKernel class available on app/SculpinKernel.php file:
class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel { protected function getAdditionalSculpinBundles() { return [ 'Janbuecker\Sculpin\Bundle\MetaNavigationBundle\SculpinMetaNavigationBundle' ]; } }
Usage
All files in source will be recognized as a Content Type Page. A Twig variable page.menu can be looped to automatically generate a menu. This menu is limited to 3 dimensions.
To make a menu item visible, you have to add a menu_title to the page.
Options
- menu_title
Menu item title - menu_order
Position of the item, low number equals top position - menu_style
An additional variable to set the list style option - menu_chapter
Simple boolean to inform the menu that it is a simple text - group
Parent menu item title on the first dimension (root) - subgroup
Parent menu item title on the second dimension
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 5.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-28