承接 yeesoft/yii2-yee-menu 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yeesoft/yii2-yee-menu

最新稳定版本:0.1.0

Composer 安装命令:

composer require yeesoft/yii2-yee-menu

包简介

Menu Module For Yee CMS

README 文档

README

Yii2 Framework - Yee CMS - Menu Module

Module for managing menus

This module is part of Yee CMS. This module allows you to create and manage menus on Yee Control Panel. Also, this module includes a widget to render menus on frontend.

Installation

  • Either run
composer require --prefer-dist yeesoft/yii2-yee-menu "~0.1.0"

or add

"yeesoft/yii2-yee-menu": "~0.1.0"

to the require section of your composer.json file.

  • Run migrations:
yii migrate --migrationPath=@vendor/yeesoft/yii2-yee-menu/migrations/

Configuration

  • In your backend config file
'modules'=>[
    'menu' => [
        'class' => 'yeesoft\menu\MenuModule',
    ],
],

Usage on frontend

  • Widget namespace:
use yeesoft\menu\widgets\Menu;
  • Render menu by ID:
echo Menu::widget(['id' => 'main-menu']); 

Menu Widget Options

Use this options to configurate menu widget:

  • id - Menu model id to render navigation.

  • wrapper - Menu wrapper - two dimensional array. First element will be placed before menu, second element will be placed after menu

  • options - Menu and submenus options.

    If options is one dimensional array then this options will be applied to all sub-menus. Example:

    'options' => ['class' => 'nav nav-menu']

    If options is two dimensional array then this options will be applied according to nested submenu level. If there is no options for current level, default settings will be applied. Example:

    'options' => [
      [ 'class' => 'nav nav-first-level'],
      [ 'class' => 'nav nav-second-level']
    ]
  • encodeLabels - Whether the nav items labels should be HTML-encoded.

  • dropDownCaret - This property allows you to customize the HTML which is used to generate the drop down caret symbol, which is displayed next to the button text to indicate the drop down functionality.

    Example of widget settings:

    echo Menu::widget([
      'id' => 'main-menu',
      'dropDownCaret' => '<span class="arrow"></span>',
      'wrapper' => [
        '<div class="navbar-default sidebar" role="navigation">',
        '</div>'
      ],
      'options' => [
        [ 'class' => 'nav nav-first-level'],
        [ 'class' => 'nav nav-second-level'],
        [ 'class' => 'nav nav-third-level']
      ],
    ])

Screenshots

Flickr - Yee CMS Menus Module

统计信息

  • 总下载量: 6.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2015-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固