2017 © Pedro Peláez
 

yii2-extension scms

Smart Content Management Module for yii2

image

frenzelgmbh/scms

Smart Content Management Module for yii2

  • Wednesday, February 11, 2015
  • by philippfrenzel
  • Repository
  • 2 Watchers
  • 1 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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)

Widgets

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,
  ]); 
}

The Versions