2017 © Pedro Peláez
 

yii2-extension yii2-cms-menu

Menu module for Yii2

image

infoweb-internet-solutions/yii2-cms-menu

Menu module for Yii2

  • Monday, August 8, 2016
  • by infoweb-internet-solutions
  • Repository
  • 5 Watchers
  • 6 Stars
  • 954 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 5 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

Menu module for Yii 2

Installation

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

php composer.phar require infoweb-internet-solutions/yii2-cms-menu "*"

or add, (*3)

"infoweb-internet-solutions/yii2-cms-menu": "*"

to the require section of your composer.json file., (*4)

Usage

Once the extension is installed, simply modify your application configuration as follows:, (*5)

'modules' => [
    ...
    'menu' => [
        'class' => 'infoweb\menu\Module',
    ],
],

Import the translations and use category 'infoweb/menu':, (*6)

yii i18n/import @infoweb/menu/messages

To use the module, execute yii migration, (*7)

yii migrate/up --migrationPath=@vendor/infoweb-internet-solutions/yii2-cms-menu/migrations

Configuration

All available configuration options are listed below with their default values., (*8)


enablePrivateMenuItems (type: boolean, default: false)

If this option is set to true, the public attribute of a menu-item can be managed and the getTree function in models/frontend/Menu will only return public menu-items if the current application user is a guest. Keep in mind that you will also have to enable the module in your frontend application to if you set this option to true., (*9)


defaultPublicVisibility (type: boolean, default: true)

This is the value that will be used as the default value of the public attribute of a menu-item., (*10)


allowContentDuplication (type: boolean, default: true)

If this option is set to true, the duplicateable jquery plugin is activated on all translateable attributes., (*11)


createEntityFromMenuItem (type: boolean, default: true)

If this option is set to true, you can for example create a page in the menu item form., (*12)


linkableEntities (type: boolean, default: [])

These are the entities will be used in the menu module. The fully qualified name of the entity class is used as the key in the array. An entity can only be linked if it implements the getUrl and getAllForDropDownList methods. For each configured entity the following fields are required: - ** label **: The entity label that will be used in the menu module - ** i18nGroup **: The group that will be used for the translation of the label, (*13)

Example configuration:, (*14)

'menu' => [
    'class' => 'infoweb\menu\Module',
    'enablePrivateMenuItems' => true,
    'linkableEntities' => [
        MedicalTraining::className()  => [
            'label'     => 'Training',
            'i18nGroup' => 'infoweb/medical-training',
        ]
    ]
],

The Versions

08/08 2016

dev-master

9999999-dev

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

28/07 2016

dev-feature/pages-from-menu

dev-feature/pages-from-menu

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

10/06 2016

3.1.0

3.1.0.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

25/02 2016

3.0.1

3.0.1.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

22/02 2016

dev-feature/translateable

dev-feature/translateable

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

22/02 2016

3.0.0

3.0.0.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

01/02 2016

2.0.2

2.0.2.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

06/01 2016

2.0.1

2.0.1.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

17/12 2015

2.0.0

2.0.0.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

15/12 2015

dev-feature/nestable

dev-feature/nestable

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

04/11 2015

1.2

1.2.0.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

15/09 2015

dev-custom/reumacentrum

dev-custom/reumacentrum

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

11/08 2015

1.1

1.1.0.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

06/08 2015

dev-custom/groepdelorge

dev-custom/groepdelorge

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

06/08 2015

1.0.5

1.0.5.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

06/08 2015

1.05

1.05.0.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

16/03 2015

1.0.4

1.0.4.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

05/01 2015

1.0.3

1.0.3.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

20/10 2014

1.0.2

1.0.2.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

17/10 2014

1.0.1

1.0.1.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu

09/10 2014

1.0.0

1.0.0.0

Menu module for Yii2

  Sources   Download

MIT

The Requires

 

yii2 menu infoweb yii2-cms-menu