sArticles Blog News and Articles Management Module for Evolution CMS admin panel.
Run in you /core/ folder:
php artisan package:installrequire seiger/sarticles "*"Generate the config file in core/custom/config/cms/settings with name sarticles.php the file should return a comma-separated list of templates.
php artisan vendor:publish --provider="Seiger\sArticles\sArticlesServiceProvider"Run make DB structure with command:
php artisan migrate/*
* Set default value for sArticles field
*/
Event::listen('evolution.sArticlesManagerValueEvent', function($params) {
$result = '';
if ($params['type'] == 'article') {
if ($params['field'] == 'description') {
$result = '<p></p>';
}
}
return $result;
});/*
* Add some html after the field
*/
Event::listen('evolution.sArticlesManagerAddAfterEvent', function($params) {
$result = '';
if ($params['type'] == 'idea') {
if ($params['field'] == 'published_at') {
$result = '';
}
}
return $result;
});