aboutsummaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <http://smcv.pseudorandom.co.uk/@web>2009-06-18 16:06:16 -0400
committerJoey Hess <joey@kitenet.net>2009-06-18 16:06:16 -0400
commit7fe5002e07532adea09292e84d15d71d97585d7e (patch)
tree75fbdc23ae6cb94b76f463052dc7628d357558e9 /doc/todo
parentc077e4b6e78bb671912675c795a3d6215defa24e (diff)
downloadikiwiki-7fe5002e07532adea09292e84d15d71d97585d7e.tar
ikiwiki-7fe5002e07532adea09292e84d15d71d97585d7e.tar.gz
feature addition + patch
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/pagestats:_ability_to_limit_to_links_from_certain_pages.mdwn16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/todo/pagestats:_ability_to_limit_to_links_from_certain_pages.mdwn b/doc/todo/pagestats:_ability_to_limit_to_links_from_certain_pages.mdwn
new file mode 100644
index 000000000..abf7c3fea
--- /dev/null
+++ b/doc/todo/pagestats:_ability_to_limit_to_links_from_certain_pages.mdwn
@@ -0,0 +1,16 @@
+The `among` branch in my git repository refactors IkiWiki::Render a
+bit, then uses this refactoring to add a [[ikiwiki/directive/pagestats]]
+parameter `among` that will only count links from pages that match a
+given [[ikiwiki/PageSpec]]. From its documentation:
+
+> The optional `among` parameter limits counting to pages that match a
+> [[ikiwiki/PageSpec]]. For instance, to display a cloud of tags used on blog
+> entries, you could use:
+>
+> \[[!pagestats pages="tags/*" among="blog/posts/*"]]
+>
+> or to display a cloud of tags related to Linux, you could use:
+>
+> \[[!pagestats pages="tags/* and not tags/linux" among="tagged(linux)"]]
+
+Suggestions for a better parameter name are welcome. --[[smcv]]