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 [2019-04-18 11:51] – benks | 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 | ||
- | Additionally in page schemas import: | + | Import |
- | * The column labeled ' | + | * The CSV file must contain a column labeled |
- | * If there are rows with identical | + | * If there are rows with identical |
- | * If the page with given ' | + | * If the page with given ''pid'' doesn' |
- | * If, however, the respective checkbox is checked, | + | * With page data every imported row creates a new revision of the page. |
- | * In the template, you can use basic bureaucracy-style placeholders for the imported struct values in the form of '' | + | |
+ | Create pages from imported datasets (special feature of page data import): | ||
+ | * Only, if the respective checkbox is checked, | ||
+ | * In the template, you can use basic bureaucracy-style placeholders for the imported struct values in the form of '' | ||
- | In the lookup schema the imported | + | Serial |
+ | * 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**. | ||
- | In the page schema | + | Global and serial data is added to whatever data is already stored. |
+ | * In contrast to the import for a page schema the CSV file for a global schema doesn' | ||
- | You can use the [[plugin: | + | You can use the [[plugin: |
plugin/struct/csvimport.1555581087.txt.gz · Last modified: 2019-04-18 11:51 by benks