diff options
author | Jon Dowland <jmtd@debian.org> | 2011-12-28 16:36:38 +0000 |
---|---|---|
committer | Jon Dowland <jmtd@debian.org> | 2011-12-28 17:05:05 +0000 |
commit | 728441b49ed6c60d6df5b5f06b34712e82807c63 (patch) | |
tree | 7d670ae297cd57682bb59c8eb3a786cc7d214b84 /doc/plugins | |
parent | ca9ef01c9304a40715417388c5ffda585bda98fc (diff) | |
download | ikiwiki-728441b49ed6c60d6df5b5f06b34712e82807c63.tar ikiwiki-728441b49ed6c60d6df5b5f06b34712e82807c63.tar.gz |
contrib plugin: pagespecalias
Diffstat (limited to 'doc/plugins')
-rw-r--r-- | doc/plugins/contrib/pagespec_alias.mdwn | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/plugins/contrib/pagespec_alias.mdwn b/doc/plugins/contrib/pagespec_alias.mdwn new file mode 100644 index 000000000..1d7889050 --- /dev/null +++ b/doc/plugins/contrib/pagespec_alias.mdwn @@ -0,0 +1,28 @@ +[[!template id=plugin name=pagespec_alias author="[[Jon]]"]] +[[!tag type/meta]] + +The pagespec_alias plugin allows the administrator(s) of a wiki to define +[[PageSpec]] aliases: short names for PageSpecs to ease re-use. + +Within the setup file, the `pagespec_aliases` value is treated as a list +of key/value pairs. The keys define alias names, the values the pagespecs +to which they refer. + +For example: + + pagespec_aliases: + image: "*.png or *.jpg or *.jpeg or *.gif or *.ico" + helper: "*.css or *.js" + boring: "image() or helper() or internal(*)" + +With the above, you could use the pagespec aliases such as + + \[[!map pages="!boring()"]] + +To define a site map which excluded various page names which might be +uninteresting to include in a site map. + + +## Download + + * <https://github.com/jmtd/ikiwiki/blob/jmtd/pagespec-alias/IkiWiki/Plugin/alias.pm> |