scms
SMART Content Management Module, (*1)
Installation
Install package via composer "frenzelgmbh/scms": "dev-master", (*2)
Update config file config/web.php and config/db.php, (*3)
// app/config/web.php
return [
'modules' => [
'pages' => [
'class' => 'frenzelgmbh\scms\Module',
// set custom module properties here ...
],
],
];
// app/config/db.php
return [
'class' => 'yii\db\Connection',
// set up db info
];
Run migration file
php yii migrate --migrationPath=@vendor/frenzelgmbh/scms/migrations, (*4)
To use the blog, you can implement the following widgets:, (*5)
Widget for Picture Links (can be used to include advertisement links)
* MODULE (e.g. STARTPAGE)
* ID (1)
* Picture (needs to be uploaded)
* Link (whatever you wanna link to), (*6)
if(class_exists('frenzelgmbh\scms\widgets\WidgetPictureLink')){
echo frenzelgmbh\scms\widgets\WidgetPictureLink::widget([
'title'=>NULL,
'limit'=>20,
]);
}
This Widget renders all posts in descendending order which is based upon the creation date of the posts., (*7)
if(class_exists('frenzelgmbh\scms\widgets\PortletPostsStyled')){
echo frenzelgmbh\scms\widgets\PortletPostsStyled::widget([
'title'=>NULL,
'limit'=>4,
]);
}