seiger/sarticles
最新稳定版本:v1.1.3
Composer 安装命令:
composer require seiger/sarticles
包简介
Blog News and Articles Management Module for Evolution CMS admin panel.
关键字:
README 文档
README
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
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2023-06-14