seiger/sarticles

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

Installs: 57

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Language:Blade

Type:evolutioncms-module

v1.1.1 2024-02-13 18:01 UTC

This package is auto-updated.

Last update: 2024-04-10 13:45:35 UTC


README

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