DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:structodt

structodt Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" yes
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" unknown

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

Last updated on
2023-08-29
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:

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: 2023-08-29 13:20 by solewniczak

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki