Plugin: getfield
Author: rubykat
Included in ikiwiki: no
Enabled by default: no
Included in goodstuff: no
Currently enabled: no

  1. NAME
  2. SYNOPSIS
  3. DESCRIPTION
  4. DOWNLOAD

NAME

IkiWiki::Plugin::getfield - query the values of fields

SYNOPSIS

# activate the plugin
add_plugins => [qw{goodstuff getfield ....}],

DESCRIPTION

This plugin provides a way of querying the meta-data (data fields) of a page inside the page content (rather than inside a template) This provides a way to use per-page structured data, where each page is treated like a record, and the structured data are fields in that record. This can include the meta-data for that page, such as the page title.

This plugin is meant to be used in conjunction with the field plugin.

USAGE

One can get the value of a field by using special markup in the page. This does not use directive markup, in order to make it easier to use the markup inside other directives. There are two forms:

More Examples

Listing all the sub-pages of the current page:

[[!map  pages="{{$page}}/*"]]

LIMITATIONS

One cannot query the values of fields on pages other than the current page or the destination page.

DOWNLOAD