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*