定制 seiger/sarticles 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

seiger/sarticles

最新稳定版本:v1.1.3

Composer 安装命令:

composer require seiger/sarticles

包简介

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

README 文档

README

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"

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

统计信息

  • 总下载量: 97
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2023-06-14