Module for importing spreadsheet as collection entries in Cockpit CMS
- Import from CSV files or JSON files (generated by Cockpit collection export functionality)
- Localization
- Auto-assign fields based on header (Column names must match collection field names)
- Filters
- Text
- Select
- Boolean
- Lookup entry matching Name (for field type
link-collection
, useful for setting up categories) For multiple collection links, use Vertical bar|
as a separator. Collection must have field namedname
- Location (Geolocate addresses)
- Cockpit v0.13
- for CSV files IE10+/ Safari 6+ (see Papaparse browser compatibility)
-
Download latest release and place in
[cockpit-path]/modules/addons/Import
orcd [cockpit-path]/modules/addons git clone https://github.com/piotr-cz/cockpit-import Import
-
Open cockpit backend.
-
In top-right corner you'll see Import button.
-
In composer.json add path where cockpit modules are located:
"extra": { "installer-paths": { "cockpit/modules/addons/{$name}": ["type:cockpit-module"] } },
-
Install module using command
composer require piotr-cz/cockpit-import
-
Select collection and file
-
Map collection fields to spreadsheet columns
-
Tune up processing options and click Import
- Papaparse (MIT)
Submit issue or feature requirement here
Latest development version