]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/ikiwiki/directive/trailitems.mdwn
docs
[git.ikiwiki.info.git] / doc / ikiwiki / directive / trailitems.mdwn
1 The `trailitems` directive is supplied by the
2 [[!iki plugins/trail desc=trail]] plugin. It adds pages
3 to the trail represented by the current page, without producing any output
4 on that page.
6     \[[!trailitems pages="posts/*" sort="age"]]
8     \[[!trailitems pagenames="a b c"]]
10 Note that if the directive includes the current page in the trail, a trail
11 will be produced that has forward and back links, but no link "up".
13 Options are similar to [[!iki ikiwiki/directive/inline desc=inline]]:
15 * `pages`: adds pages that match a [[ikiwiki/PageSpec]] to the trail
16   (cannot be used with `pagenames`)
18 * `pagenames`: if used instead of `pages`, this is interpreted as a
19   space-separated list of absolute page names
20   ([[SubPage/LinkingRules]] are not taken into account)
21   to add to the trail
23 * `sort`: add the pages matched by `pages` to the trail in this
24   [[ikiwiki/pagespec/sorting]] order (cannot be used with `pagenames`)
26 * `reverse`: reverse the order of `sort` (cannot be used with `pagenames`)
28 [[!meta robots="noindex, follow"]]