]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
create todo wishlist patch for match_userdir idea
authoriki@e3f6f8ca81d7d2a246b9f0782e57f5c6b6f9c3c5 <iki@web>
Fri, 20 Nov 2015 17:25:18 +0000 (13:25 -0400)
committeradmin <admin@branchable.com>
Fri, 20 Nov 2015 17:25:18 +0000 (13:25 -0400)
doc/todo/userdir__40____41___pagespec_directive_to_match_userpage_and_SubPages.mdwn [new file with mode: 0644]

diff --git a/doc/todo/userdir__40____41___pagespec_directive_to_match_userpage_and_SubPages.mdwn b/doc/todo/userdir__40____41___pagespec_directive_to_match_userpage_and_SubPages.mdwn
new file mode 100644 (file)
index 0000000..b64bf0a
--- /dev/null
@@ -0,0 +1,13 @@
+[[!tag wishlist patch ]]
+[[!template id=gitbranch branch=bfree/userdirps author="niall"]]
+I've written a very small plugin, inspired by 
+[[forum/Can_ikiwiki_be_configured_as_multi_user_blog__63__]] 
+which adds match_userdir to IkiWiki::PageSpec
+
+userdir() in a [[IkiWiki/PageSpec]] takes no arguments and checks 
+if the page is the users userpage or a SubPage of it.
+
+The plugin is named userdirps.
+
+In case my gitbranch template is wrong:
+[[https://github.com/bfree/ikiwiki/commit/1f699d15c0778702cc5264dd3c8f822c6b0609ba]]