DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:csvimport

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
plugin:struct:csvimport [2020-05-14 13:26]
andi
plugin:struct:csvimport [2021-03-31 09:04]
Michaelsy nowiki-tags added
Line 11: Line 11:
   * Column contents should be enclosed with double quotes   * Column contents should be enclosed with double quotes
   * Double quotes can be escaped with a backslash (''\'') or using standard doubling of the double quotes (''%%""%%'')   * Double quotes can be escaped with a backslash (''\'') or using standard doubling of the double quotes (''%%""%%'')
-  * Fields of [[plugin:struct:Type Lookup]] have a special structure: they consist of a JSON encoded array with page id and row id. For example, a raw lookup value referencing a page would be ''["namespace:id",2]'', while the value escaped and quoted in CSV would look like this ''"[""namespace:id"",2]"''+  * Fields of [[plugin:struct:Type Lookup]] have a special structure: they consist of a JSON encoded array with page id and row id. For example, a raw lookup value referencing a page would be ''%%["namespace:id",2]%%'', while the value escaped and quoted in CSV would look like this ''%%"[""namespace:id"",2]"%%''
   * For multi fields, the column content will be split at commas (no support for any escaping), but lookup-type fields will be split only on the proper commas between values.   * For multi fields, the column content will be split at commas (no support for any escaping), but lookup-type fields will be split only on the proper commas between values.
   * Content has to be in UTF-8 encoding   * Content has to be in UTF-8 encoding
plugin/struct/csvimport.txt ยท Last modified: 2021-03-31 16:01 by juergen-aus-zuendorf