]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix syntax
authorsmcv <smcv@web>
Sun, 14 May 2017 10:41:21 +0000 (06:41 -0400)
committeradmin <admin@branchable.com>
Sun, 14 May 2017 10:41:21 +0000 (06:41 -0400)
doc/forum/Limit_pagespec_to_a_certain_depth.mdwn

index b1d7e49bb73682831644358bdca9651b6fe054b0..75a5b9ca9823f8158bcfc5efb82c66570c7137fd 100644 (file)
@@ -1 +1 @@
-I'd like my index page of my wiki to show me a list of all the files in the wiki's root and only the names of "folder-pages" (those pages that are named the same way as the folders). I used the map directive to create a list, but I can't come up with a way to limit the depth of the pagespec, so everything inside of the folders is matched and listed as well, which is not what I want. Is there a way to limit the page spec's depth or make it exclude pages in subfolders? I tried `[[!map  pages="page(* and !*/*)"]]` or `[[!map  pages="page(* and !foobar/*)"]]`, but both exclude the "folder-pages" (either all of them (first case) or the ones that I have specified (second case)).
+I'd like my index page of my wiki to show me a list of all the files in the wiki's root and only the names of "folder-pages" (those pages that are named the same way as the folders). I used the map directive to create a list, but I can't come up with a way to limit the depth of the pagespec, so everything inside of the folders is matched and listed as well, which is not what I want. Is there a way to limit the page spec's depth or make it exclude pages in subfolders? I tried `\[[!map  pages="page(* and !*/*)"]]` or `\[[!map  pages="page(* and !foobar/*)"]]`, but both exclude the "folder-pages" (either all of them (first case) or the ones that I have specified (second case)).