piotr-cz / cockpit-import
Spreadsheet import module for Cockpit CMS
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 5
Forks: 2
Open Issues: 2
Language:JavaScript
Type:cockpit-module
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-12-27 19:54:33 UTC
README
Module for importing spreadsheet as collection entries in Cockpit CMS
Features
- 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)
Requirements
- Cockpit v0.13
- for CSV files IE10+/ Safari 6+ (see Papaparse browser compatibility)
Installation
Manual
-
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.
Using composer
-
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
Usage
-
Select collection and file
-
Map collection fields to spreadsheet columns
-
Tune up processing options and click Import
Authors
3p libraries
- Papaparse (MIT)
Issues/ Feature requirements
Submit issue or feature requirement here
Latest development version