aboutsummaryrefslogtreecommitdiff
path: root/doc/forum
diff options
context:
space:
mode:
authoropenmedi <openmedi@web>2017-04-18 08:19:44 -0400
committeradmin <admin@branchable.com>2017-04-18 08:19:44 -0400
commitd16946c950b694b8357336cd10e014b74f7cde74 (patch)
tree3c91f96f0b43f1fec093a2f709d487e9241458e1 /doc/forum
parent3f709fab6cb9410313908943d536016294eff87f (diff)
downloadikiwiki-d16946c950b694b8357336cd10e014b74f7cde74.tar
ikiwiki-d16946c950b694b8357336cd10e014b74f7cde74.tar.gz
Diffstat (limited to 'doc/forum')
-rw-r--r--doc/forum/Limit_pagespec_to_a_certain_depth.mdwn1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/forum/Limit_pagespec_to_a_certain_depth.mdwn b/doc/forum/Limit_pagespec_to_a_certain_depth.mdwn
new file mode 100644
index 000000000..b1d7e49bb
--- /dev/null
+++ b/doc/forum/Limit_pagespec_to_a_certain_depth.mdwn
@@ -0,0 +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)).