infoweb-internet-solutions / yii2-cms-pages
Yii2 pages
Installs: 1 107
Dependents: 3
Suggesters: 0
Security: 0
Stars: 5
Watchers: 6
Forks: 6
Open Issues: 4
Type:yii2-extension
Requires
- 2amigos/yii2-translateable-behavior: @stable
- infoweb-internet-solutions/yii2-cms: @stable
- infoweb-internet-solutions/yii2-cms-sliders: @stable
- kartik-v/yii2-grid: @stable
- kartik-v/yii2-widgets: @stable
- mihaildev/yii2-ckeditor: @stable
- yiisoft/yii2: @stable
- dev-master
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.1.9
- 1.1
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.3
- 0.0.1
- dev-feature/pages-from-menu
- dev-custom/agoravzw
- dev-feature/duplicate
- dev-feature/translateable
- dev-custom/guesthouse-number7
- dev-custom/groepdelorge
- dev-custom/rotarygenk
- dev-custom/whitelight
This package is not auto-updated.
Last update: 2024-12-21 18:21:36 UTC
README
With this extension you can manage pages that can be used in a website.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist infoweb-internet-solutions/yii2-cms-pages "*"
or add
"infoweb-internet-solutions/yii2-cms-pages": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed run this migration
yii migrate/up --migrationPath=@infoweb/pages/migrations
Enable the module in backend/config/main.php
:
'modules' => [ ... 'pages' => [ 'class' => 'infoweb\pages\Module', ], ],
Import the translations and use category 'infoweb/pages':
yii i18n/import @infoweb/pages/messages
And finally enable the page component in frontend/config/main.php
:
'components' => [ ... 'page' => [ 'class' => 'infoweb\pages\components\Page' ] ]
Configuration
All available configuration options are listed below with their default values.
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.
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.
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.
enablePrivatePages (type: boolean
, default: false
)
If this option is set to true
, the public
attribute of a page can be managed.
defaultPublicVisibility (type: boolean
, default: true
)
This is the value that will be used as the default value of the public
attribute of a page.
allowContentDuplication (type: boolean
, default: true
)
If this option is set to true
, the duplicateable
jquery plugin is activated on all translateable attributes.
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.