Skip to content

MiddleSokilAI/sArticles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sArticles for Evolution CMS

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

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"

Create only the sArticles database structure with command:

php artisan migrate --path=vendor/seiger/sarticles/database/migrations --force

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 the Evolution CMS admin panel.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Blade 59.1%
  • PHP 40.9%