frenzelgmbh / sblog
Smart Weblog Module for yii2
Installs: 81
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Type:yii2-extension
Requires
- frenzelgmbh/cm-address: *
- frenzelgmbh/cm-categories: *
- kartik-v/yii2-grid: dev-master
- kartik-v/yii2-social: dev-master
- kartik-v/yii2-widgets: dev-master
- philippfrenzel/yiiwymeditor: dev-master
- suin/php-rss-writer: >=1.0
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-03 07:51:02 UTC
README
SMART WebLog Module
Installation
Install package via composer "frenzelgmbh/sblog": "dev-master"
Update config file config/web.php and config/db.php
// app/config/web.php return [ 'modules' => [ 'sblog' => [ 'class' => 'frenzelgmbh\sblog\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/sblog/migrations
Widgets
To use the blog, you can implement the following widgets:
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)
if(class_exists('frenzelgmbh\sblog\widgets\WidgetPictureLink')){ echo frenzelgmbh\sblog\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.
if(class_exists('frenzelgmbh\sblog\widgets\PortletPostsStyled')){ echo frenzelgmbh\sblog\widgets\PortletPostsStyled::widget([ 'title'=>NULL, 'limit'=>4, ]); }