plugin:struct:csvimport
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:struct:csvimport [2016-12-07 17:01] – [Struct Plugin: CSV Import] andi | plugin:struct:csvimport [2023-05-11 16:49] (current) – [Struct Plugin: CSV Import] Chris75 | ||
---|---|---|---|
Line 2: | Line 2: | ||
====== Struct Plugin: CSV Import ====== | ====== Struct Plugin: CSV Import ====== | ||
- | The [[plugin: | + | The [[plugin: |
- | | + | Some general rules: |
+ | |||
+ | | ||
* Columns with headers not matching any field name are ignored | * Columns with headers not matching any field name are ignored | ||
* Only commas are supported as separator | * Only commas are supported as separator | ||
* Column contents should be enclosed with double quotes | * Column contents should be enclosed with double quotes | ||
* Double quotes can be escaped with a backslash ('' | * Double quotes can be escaped with a backslash ('' | ||
- | * For multi fields, the column content will be split at commas (no support for any escaping) | + | |
+ | | ||
* Content has to be in UTF-8 encoding | * Content has to be in UTF-8 encoding | ||
- | The imported data is added to whatever data is already stored | + | Import page data (one dataset/row per page): |
+ | * The CSV file must contain a column labeled '' | ||
+ | * If there are rows with identical '' | ||
+ | * If the page with given '' | ||
+ | * With page data every imported row creates a new revision of the page. | ||
+ | |||
+ | Create pages from imported datasets (special feature of page data import): | ||
+ | * Only, if the respective checkbox is checked, non-existing pages are created at the locations of the given page ids in the '' | ||
+ | * In the template, you can use basic bureaucracy-style placeholders for the imported struct values in the form of '' | ||
+ | |||
+ | Serial data is imported similarly to page data, with some exceptions: | ||
+ | * Multiple rows with the same '' | ||
+ | * If you choose the option to create non-existing pages, the appropriate serial syntax will be added to bottom of the created page. Placeholders in page templates are **not supported**. | ||
+ | |||
+ | Global and serial | ||
+ | * In contrast to the import for a page schema | ||
- | You can use the [[plugin: | + | You can use the [[plugin: |
plugin/struct/csvimport.1481126511.txt.gz · Last modified: 2016-12-07 17:01 by andi