DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:structodt

structodt Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" yes
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown

plugin Allows to generate odt files based on template file, filled with struct data.

Last updated on
2019-04-13
Provides
Syntax
Repository
Source
Requires
struct

This plugin allows you to generate odt files based on template file, filled with struct data.

Installation

:!: This plugin requires the struct plugin which has to be installed first.

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Usage

The code below:

---- struct odt ---
schema: sample_schema
cols: *
template: ::template.odt
----

Will result with something similar to:

https://image.ibb.co/c43vc7/structodt1.png

Each document icon in the table links to odt file which can be downloaded. All of them are build from odt template defined by template parameter. Other parameters behaves like in struct table. Template file is odt file upload by Media Manager.

Templates

Templates are normal odt files. Following strings will be replaced:

  • @@struct_field_name@@ - struct field
  • @@struct_field_mulit[0]@@, @@struct_field_mulit[1]@@, … - first, second, … value of multi field
  • @@%pageid%@@ etc. like in special_columns

Entire string in odt file must be in one format.

plugin/structodt.txt · Last modified: 2019-04-13 13:38 by Michaelsy