Skip to content

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

License

Notifications You must be signed in to change notification settings

Seiger/sArticles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published