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 revision Previous revision
Next revision
Previous revision
plugin:struct:csvimport [2019-04-18 11:51]
benks
plugin:struct:csvimport [2019-07-14 04:37]
rkaa
Line 2: Line 2:
 ====== Struct Plugin: CSV Import ====== ====== Struct Plugin: CSV Import ======
  
-The [[plugin:​struct:​schemaedit|Schema Editor]] has Import/​Export tab offering support for importing raw data into a schema (either page or lookup) using a CSV file. Some general rules:+The [[plugin:​struct:​schemaedit|Schema Editor]] has an Import/​Export tab offering support for importing raw data into a schema (either page or lookup) using a CSV file. Some general rules:
  
   * The first row has to contain headers matching the field names of the lookup schema you're importing into   * The first row has to contain headers matching the field names of the lookup schema you're importing into
Line 17: Line 17:
   * If the page with given '​pid'​ doesn'​t exists the entire row is omitted (with the proper error message) but the import continues.   * If the page with given '​pid'​ doesn'​t exists the entire row is omitted (with the proper error message) but the import continues.
     * If, however, the respective checkbox is checked, then the page is created instead. This page-creation uses the existing namespace template if it exists or creates only a page with the pagename as first heading.     * If, however, the respective checkbox is checked, then the page is created instead. This page-creation uses the existing namespace template if it exists or creates only a page with the pagename as first heading.
-    * In the template, you can use basic bureaucracy-style placeholders for the imported struct values in the form of ''​%%@@schemaname.labelname@@%%''​ or ''​%%##​schemaname.labelname##​%%''​. Notice that the labels are case sensitive here (in contrast to using them in templates with bureaucracy).+    * In the template, you can use basic bureaucracy-style placeholders for the imported struct values in the form of ''​%%@@schemaname.labelname@@%%''​ or ''​%%##​schemaname.labelname##​%%''​. Notice that labels are case sensitive here (in contrast to using them in templates with bureaucracy).
  
 In the lookup schema the imported data is added to whatever data is already stored. In the lookup schema the imported data is added to whatever data is already stored.
plugin/struct/csvimport.txt ยท Last modified: 2019-07-14 04:37 by rkaa