sudhaus7/xlsimport
Composer 安装命令:
composer require sudhaus7/xlsimport
包简介
(Sudhaus7) XLS Importer
README 文档
README
TCA driven import Extension for Spreadsheets
What does it do?
This extension helps to import data from Spreadsheets into TYPO3.
How does it work?
This extension provides a new backend module in which you can use every TCA configured table for importing data from Excel.
When uploading the spreadsheet, you can select the table you want to import data to.
After the upload, you will get a table with the data of the first worksheet. In the header, you can select your field to import to, so you don't have to respect a specific order of columns in your spreadsheet.
Every line can be removed, so you import only the data you want to.
Configuration
The module can be configured by TSconfig. The following snippet has to be added to your Page TS Configuration.
This is the Default Setting:
module.tx_xlsimport {
settings {
allowedTables = tt_address
}
}
which you can either override, or extend in this fashion:
module.tx_xlsimport {
settings {
allowedTables := addItems(my_table_configured_in_TCA)
}
}
Important: you have to specify the TABLENAME of an extension you want to
import to, not the extension name. So for example, if you want to import data for
the news extension (tx_news) you have to add the tablename
tx_news_domain_model_news. Respectfully, if you want to import tx_news's Tags,
you have to add the tablename tx_news_domain_model_tag to the list.
The extension in itself does not maintain relations out of the box.
Limitations
When a non-admin user is using the tool, the folder the import is made to has to either be inside a site-setup with defined languages OR the sys_language_id (0,1,2,3) has to be part of the imported data. If these requisits are not met, the tool will report a successful import, while no data has been imported. We hope to address this in a future update.
TODO:
- add more Events/Signalslots for datamanipulation
- add support for multiple sheets
FUTURE: (hit me up if you are willing to help funding)
- support for related data as far as it is modelled in the TCA
- support for import-presets or templates for recurring import tasks
Local development
Local development environment with ddev
This extension repository includes a ddev instance configuration matching the development
requirements and is setup to provide and easy and simple development experience for people,
which wants to contribute or play around.
That means, thatn on a simple ddev start the environment is checked and the TYPO3 instance
configured (setup) against ddev with a generic admin user along with creating pages tree for
the backend using typo3/cms-styleguide and the included generator.
Start
ddev start
Full reset (destroy)
ddev stop -ROU \ && git clean -xdf -e '.idea'
Recreate instance
ddev stop -ROU \ && git clean -xdf -e '.idea' \ && ddev start
To simplify the setup, a generic admin user is created:
| type | username | password | |
|---|---|---|---|
| BE | john-doe | John-Doe-1701D. | john.doe@example.com |
with following urls:
| url | command | description |
|---|---|---|
| https://typo3-xlsimport.ddev.site/typo3/ | ddev launch /typo3/ | Open the TYPO3 backend |
| https://typo3-xlsimport.ddev.site/styleguide-demo-1/ | ddev launch /styleguide-demo-1/ | Open the styleguide frontend |
Changes in v5.0
- removed TypoScript support, as TypoScript is frontend related
- use Page TSconfig instead
- Configuration is the same as in TypoScript
- Or configure via Extension Configuration
- Rework for removing Extbase dependencies in Controller
- No changes needed
sudhaus7/xlsimport 适用场景与选型建议
sudhaus7/xlsimport 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 35.06k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2020 年 03 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sudhaus7/xlsimport 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sudhaus7/xlsimport 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sudhaus7/xlsimport 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This module allows drag & drop grouping of items in a GridField
Adds text size controls and text-to-speech controls to Flarum discussion content.
Native Blade date, datetime, and date range pickers.
Symfony and Flysystem integration for the maintained KCFinder continuation.
Laravel integration for the maintained KCFinder continuation.
PHPStan rules shared across KnpLabs organization projects
统计信息
- 总下载量: 35.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-24