fields plugin

fields plugin by Aurélien Bompard
Allows storage and retrieval of user-defined fields throughout the page

Last updated on 2008-02-26. Provides Syntax.
Compatible with DokuWiki 2006-11-06.

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

The plugin can be downloaded from here.

I use Git to manage the source code, you can obtain the development version with this command :

git clone http://aurelien.bompard.org/projects/dokuwiki/fields.git

Some interesting links on Git:

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.

Discussion

Feel free to contact me by mail, as I'm not going to track this page very often.

The toolbar button does not appear FIXME. I use DokuWiki version 2008-05-05.

1) it doesn't appear to work in headings
 
plugin/fields.txt · Last modified: 2008/11/27 17:52 by 196.34.16.68
 

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate