From bda8f5dc6e4536ea07d0e026cb1a47eb3bef87b5 Mon Sep 17 00:00:00 2001 From: jmtd Date: Wed, 6 Sep 2023 08:02:32 -0400 Subject: [PATCH] ispage() does not seem to work as expected --- ..._40____41___does_not_work_as_expected.mdwn | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn diff --git a/doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn b/doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn new file mode 100644 index 000000000..4964f4af1 --- /dev/null +++ b/doc/bugs/ispage__40____41___does_not_work_as_expected.mdwn @@ -0,0 +1,33 @@ +In a few places, it is recommended to try the `ispage()` pagespec, described at [[ikiwiki/pagespec/attachment]] but provided by the (supposedly independent) plugin [[plugins/filecheck]]. + +I've had trouble getting it to work so put together a minimal test-case. Very basic wiki with filecheck enabled (but attachment not). + +File structure as follows + +``` +index.mdwn +a/foo.mdwn +a/bar.txt +a/pic.png +``` + +index containing + +``` +\[[!map pages="a/*"]] +\[[!map pages="a/* and ispage()"]] +``` + +The first map expands, as expected, to + + * bar.txt + * foo + * pic.png + +The second is empty. Expected behaviour: + + * foo + +(with [[plugins/txt]] not enabled) + +*— [[Jon]], 2023-09-06*