1 Star 0 Fork 0

小马哥 / ecms

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ecms

Easy Content System Content

gitee packagist

简介

基于think6~、layui2.9~构建的内容管理系统

项目来源: YznCMS 后台开发框架 由于YznCMS使用thinkphp5.1开发且不支持composer安装

对此进行了升级

  1. thinkphp升级为thinkphp6.1~
  2. 支持composer安装
  3. 多语言
  4. curd页面快速构建

使用

安装

composer require  magein/ecms -vvv -o

发布

# 安装默认为admin
php think ecms:publish 
# 或者指定安装目录
php think ecms:publish system 

执行命令后创建app/admin目录以及先关文件

创建数据库

如果尚未配置数据库参数,导致发布后没有创建表以及数据,请执行以下命令

php think ecms:database run 
# 创建数据
php think ecms:database seed 

静态资源文件

创建静态资源文件失败可以执行以下名称创建(需要有网络支持)

php think ecms:vendor

nginx推荐配置

location / {
    try_files $uri $uri/ /index.php$uri$is_args$query_string;
}
location ~.*.php($|/) {
  fastcgi_split_path_info ^(.+\.php)(.*)$;
  fastcgi_index  index.php;
  fastcgi_pass   php:9000;
  fastcgi_param  SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  fastcgi_param  PATH_INFO $fastcgi_path_info; 
  include        fastcgi_params;
}

富文本

tinymce

语言包:https://www.tiny.cloud/get-tiny/language-packages/

采用弹出框形式展示的时候,功能样式会被覆盖(替换的文件已经删除,等待重新测试):

参考:https://gitee.com/chick1993/layui-tinymce#q1-%E5%9C%A8%E5%BC%B9%E7%AA%97%E9%87%8C%E9%9D%A2%E4%BD%BF%E7%94%A8%E6%97%B6%E8%8F%9C%E5%8D%95%E5%AE%9A%E4%BD%8D%E5%9C%A8%E5%BC%B9%E7%AA%97%E4%B8%8B%E9%9D%A2%E6%80%8E%E4%B9%88%E5%8A%9E

修改public/vendor/ecms/libs/plugins/tinymce/skins/ui/oxide/skin.min.css中的z-index值

使用正则替换:

# 表达式
z-index:(\d+)
# 替换的内容
z-index:$100000

常见问题

常见问题

MIT License Copyright (c) 2023 小马哥 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

基于thinkphp6、layui搭建的内容管理系统 展开 收起
PHP 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/magein/ecms.git
git@gitee.com:magein/ecms.git
magein
ecms
ecms
master

搜索帮助