With this extension you can manage pages that can be used in a website.
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.
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'
]
]
All available configuration options are listed below with their default values.
If this option is set to true
, it is possible to attach an entity from the menu
module to a page.
If this option is set to true
, it is possible to attach an entity from the form
module to a page.
If this option is set to true
, it is possible to attach an entity from the sliders
module to a page.
If this option is set to true
, the public
attribute of a page can be managed.
This is the value that will be used as the default value of the public
attribute of a page.
If this option is set to true
, the duplicateable
jquery plugin is activated on all translateable attributes.
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.