Skip to content

Latest commit

 

History

History
73 lines (61 loc) · 2.22 KB

README.md

File metadata and controls

73 lines (61 loc) · 2.22 KB

sArticles for Evolution CMS 3

Latest Stable Version CMS Evolution PHP version License Issues Stars Total Downloads

Warning

Pay attention when updating from version 1.0.x to 1.1.x.

Content builder templates have been converted to Blade format.

The table of articles and translations of articles have been edited.

Added comment and category tables.

sArticles Blog News and Articles Management Module for Evolution CMS admin panel.

Install by artisan package installer

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

Events

/*
 * 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;
});