2017 © Pedro Peláez
 

yii2-extension yii2-cms-pages

Yii2 pages

image

infoweb-internet-solutions/yii2-cms-pages

Yii2 pages

  • Wednesday, August 31, 2016
  • by infoweb-internet-solutions
  • Repository
  • 6 Watchers
  • 5 Stars
  • 1,063 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 5 Forks
  • 4 Open issues
  • 28 Versions
  • 0 % Grown

The README.md

Pages extension for Yii 2

With this extension you can manage pages that can be used in a website., (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist infoweb-internet-solutions/yii2-cms-pages "*"

or add, (*4)

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

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

Usage

Once the extension is installed run this migration, (*6)

yii migrate/up --migrationPath=@infoweb/pages/migrations

Enable the module in backend/config/main.php:, (*7)

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

Import the translations and use category 'infoweb/pages':, (*8)

yii i18n/import @infoweb/pages/messages

And finally enable the page component in frontend/config/main.php:, (*9)

'components' => [
    ...
    'page' => [
        'class' => 'infoweb\pages\components\Page'
    ]
]

Configuration

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


enableMenu (type: boolean, default: false)

If this option is set to true, it is possible to attach an entity from the menu module to a page., (*11)


enableForm (type: boolean, default: false)

If this option is set to true, it is possible to attach an entity from the form module to a page., (*12)


enableSliders (type: boolean, default: false)

If this option is set to true, it is possible to attach an entity from the sliders module to a page., (*13)


enablePrivatePages (type: boolean, default: false)

If this option is set to true, the public attribute of a page can be managed., (*14)


defaultPublicVisibility (type: boolean, default: true)

This is the value that will be used as the default value of the public attribute of a page., (*15)


allowContentDuplication (type: boolean, default: true)

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


ckEditorOptions (type: array, default: ['height' => 500])

These are the custom options for that will be used for each ckEditor instance in this module. It is also possible to override these settings per instance in its own view., (*17)


The Versions