DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:fields

This is an old revision of the document!


fields plugin

Compatible with DokuWiki

2006-11-06

plugin Allows storage and retrieval of user-defined fields throughout the page

Last updated on
2010-07-24
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to const, data, data-au, easyvar, kixovar, macros, pot, replace, strata, textinsert

Tagged with meta, odt, replace

This plugin allows you to define “fields” in a page, which can be used anywhere 1) in the document. This can be very useful to set an author name, a reference string, or a version number for example, and use those variables anywhere in the page.

Download

Flattr this

The plugin can be downloaded from here: dokuwiki-fields-20080303.zip (signature). Older releases are available here.

I use Git to manage the source code, which is hosted on Gitorious. You can obtain the development version with this command :

git clone git://gitorious.org/dokuwiki-fields/dokuwiki-fields.git

Some interesting links on Git:

If you have any requests (bugs, features, etc.), please use the plugin's tracker, I don't monitor this page.

Usage

To set a field, use the following syntax:

{{fields>FIELD_NAME=FIELD_VALUE}}

where “FIELD_NAME” is the name of the field and “FIELD_VALUE” is the value (obviously :) ). Neither the name nor the value need to be uppercase, in fact they may contain any character. The field value can even contain equal signs (“=”).

To display a field, use the following syntax :

{{fields>FIELD_NAME}}

Note : This plugin supports XHTML rendering as well as ODT rendering.

Usage in ODT rendering

In OpenOffice.org, add a field in this way:

  • Insert → Field → Other → Variable → User Field
  • You can leave the value empty
  • Add this field in your document (usually by clicking on 'insert' in the above window)
  • It's done :-)

Discussion

Feel free to contact me by mail, as I don't monitor this page. If you have any requests (bugs, features, etc.), please use the plugin's tracker.

1)
it doesn't appear to work in headings
plugin/fields.1305575262.txt.gz · Last modified: 2011-05-16 21:47 by ach

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