diff options
author | fr33domlover <fr33domlover@web> | 2015-02-18 18:21:13 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2015-02-18 18:21:13 -0400 |
commit | 66d917d07197139ac18309d0b8d5ba82e837f3c0 (patch) | |
tree | ea4be150952ea55b868848883c178e695f03ba75 /doc/bugs/trailitems_fails_inside_template.mdwn | |
parent | 7f5cfbf239123b42666cd1cfc4e52d2e71d7edc4 (diff) | |
download | ikiwiki-66d917d07197139ac18309d0b8d5ba82e837f3c0.tar ikiwiki-66d917d07197139ac18309d0b8d5ba82e837f3c0.tar.gz |
Report a bug
Diffstat (limited to 'doc/bugs/trailitems_fails_inside_template.mdwn')
-rw-r--r-- | doc/bugs/trailitems_fails_inside_template.mdwn | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/bugs/trailitems_fails_inside_template.mdwn b/doc/bugs/trailitems_fails_inside_template.mdwn new file mode 100644 index 000000000..477745793 --- /dev/null +++ b/doc/bugs/trailitems_fails_inside_template.mdwn @@ -0,0 +1,28 @@ +In my wiki I have a template page under `/templates` that looks like this: + + \[[!inline + pages="<TMPL_VAR PAGE>/* and !<TMPL_VAR PAGE>/*/*" + show=0 + template=titlepage + feeds=no + sort=title]] + + \[[!trailitems + pages="<TMPL_VAR PAGE>/* and !<TMPL_VAR PAGE>/*/*" + sort=title]] + +I tested this page with many variations and by trial and error reached a conclusion that +when using `trailitems` with a path that contains TMPL_VAR, or using the inline directive +with `trail=yes` and a `pages` that contains TMPL_VAR, the trail plugin (or something else?) +seems to not resolve the TMPL_VAR and ikiwiki fails to compile the wiki, and I get this: + + syntax error in pagespec "<TMPL_VAR PAGE>/* and !<TMPL_VAR PAGE>/*/*" + +on the command line. + +Until I get feedback here I'll try to look at the source and see if I figure it out. +My ikiwiki version: 3.20130904 + +Huge thanks in advance! + +--[[fr33domlover]] |