piotr-cz / cockpit-import
Cockpit CMS 的电子表格导入模块
v1.1.3
2016-09-09 10:13 UTC
Requires
- php: >= 5.3.10
- composer/installers: ^1.2.0
Suggests
- aheinze/cockpit: Please install Cockpit before installing this module
This package is not auto-updated.
Last update: 2024-09-20 18:44:02 UTC
README
模块,用于将电子表格作为集合条目导入到 Cockpit CMS
功能
- 从 CSV 文件或 JSON 文件导入 (由 Cockpit 集合导出功能生成)
- 本地化
- 根据标题自动分配字段 (列名必须与集合字段名称匹配)
- 过滤器
- 文本
- 选择
- 布尔值
- 查找匹配名称的条目 (对于字段类型
link-collection
,用于设置分类很有用) 对于多个集合链接,使用竖线|
作为分隔符。 集合必须具有名为name
的字段 - 位置 (地理位置定位地址)
要求
- Cockpit v0.13
- 对于 CSV 文件 IE10+/ Safari 6+ (参见 Papaparse 浏览器兼容性)
安装
手动
-
下载 最新版本 并放置在
[cockpit-path]/modules/addons/Import
中或cd [cockpit-path]/modules/addons git clone https://github.com/piotr-cz/cockpit-import Import
-
打开 cockpit 后端。
-
右上角您将看到 导入 按钮。
使用 composer
-
在 composer.json 中添加 cockpit 模块所在的路径
"extra": { "installer-paths": { "cockpit/modules/addons/{$name}": ["type:cockpit-module"] } },
-
使用命令安装模块
composer require piotr-cz/cockpit-import
用法
作者
第三方库
- Papaparse (MIT)
问题/功能需求
在此处提交问题或功能需求 这里
最新 开发版本