divante-ltd/pimcore-classification-store-importer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

divante-ltd/pimcore-classification-store-importer

最新稳定版本:v2.0.0

Composer 安装命令:

composer require divante-ltd/pimcore-classification-store-importer

包简介

Pimcore bundle for Classificationstore import and export

README 文档

README

Pimcore5 bundle that provides import and export for classification store structure and other facilities.

Table of Contents

Compatibility

Release 1.0.0 - Pimcore 5.4.0 up to Pimcore 6.9 Release 2.0.0 - Pimcore 10.0 and higher

Installation

composer require divante-ltd/pimcore-classification-store-importer

Documentation

https://divante.atlassian.net/wiki/spaces/KPWP/pages/896106614/Classificationstore+bundle

Usage - import

bin/console divante:classificationstore:import -f path/to/file/cs_structure.csv -d ";" -c "'"

where -d ";" option stands for CSV delimiter; and -c '"' stands for field enclosure

Each row in CSV file represents single item: store, collection, group or key.

Each row is of the form: param1;value1;param2;value2;param3;value3;...

Common parameters:
  • item - one of: store, collection, group, key
  • name - name of the item
  • description - description of the item
  • store - store name of the item (for collections, groups and keys)
  • groups - comma-separated list of groups belonging to a collection (only for colections)
  • keys - comma-separated list of keys belonging to a group (only for groups)
Keys parameters:
  • type - type of key (curently supported: input, checkbox, booleanSelect, numeric, textarea, wysiwyg, select, multiselect)
  • title - key title
  • options for select and multiselect are provided like: option_text1;Color blue;option_value1;3;option_text2;Color green;option_value2;4

Other parameters depend on particular key type.

Keys' other parameters (defaults):
  • booleanSelect: yesLabel (yes), noLabel (no), emptyLabel (empty), width
Example of CSV file
item;store;name;store1;description;store1_description;;;;;;;;;;;;
item;store;name;store2;description;store2_description;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;
item;collection;store;store1;name;col1;description;col1_descr;groups;group1_name, group2_name;;;;;;;;
item;collection;store;store2;name;col2;description;col2_descr;groups;group1_name;;;;;;;;
;;;;;;;;;;;;;;;;;
item;group;store;store1;name;group1_name;description;gr1_descr;keys;key1_name,key2_name;sorter;key1_sorter_val,key2_sorter_val ;;;;;;;;;
item;group;store;store2;name;group2_name;description;gr2_descr;keys;sorter ;;;;;;;;;
;;;;;;;;;;;;;;;;;
item;key;store;store2;name;key2_name;title;key2_title;description;key2_description;type;input;;;;;;;;
item;key;store;store1;name;key1_name;title;key1_title;description;key1_description;type;select;option_text1;blue;option_value1;3;option_text2;green;option_value2;4

Usage - export

bin/console divante:classificationstore:export -f path/to/file/cs_structure.csv -d ";"

where -d ";" option stands for CSV delimiter; and -c '"' stands for field enclosure

Export file has the same form as import file described above.

Release 1.0.0 Notes

Adds the information about 'sorter' to export file. This allows to have keys sorted within a group.

Contributing

This is an internal Divante project.

Licensing

The code in this project is licensed under the GPLv3 license.

Standards & Code Quality

This module respects all Pimcore5 code quality rules and our own PHPCS and PHPMD rulesets.

About Authors

Divante-logo

Visit our website Divante.com for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-07-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固