From bf2bf18a792efde4f359875c98f2768a7da5558c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 18 Jul 2009 13:29:24 +0100 Subject: Advertise my 'among' branch for review --- doc/todo/pagestats_among_a_subset_of_pages.mdwn | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/todo/pagestats_among_a_subset_of_pages.mdwn (limited to 'doc/todo/pagestats_among_a_subset_of_pages.mdwn') diff --git a/doc/todo/pagestats_among_a_subset_of_pages.mdwn b/doc/todo/pagestats_among_a_subset_of_pages.mdwn new file mode 100644 index 000000000..f131b5283 --- /dev/null +++ b/doc/todo/pagestats_among_a_subset_of_pages.mdwn @@ -0,0 +1,26 @@ +[[!tag patch plugins/pagestats]] + +My `among` branch fixes [[todo/backlinks_result_is_lossy]], then uses that +to provide pagestats for links from a subset of pages. From the docs included +in the patch: + +> 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)"]] + +I use this on my tag pages on one site, with the following template: + + \[[!pagestats pages="tags/* and !tags/ + and !tags/photogallery" + among="tagged()"]] + + \[[!inline pages="tagged()" + archive="yes" quick="yes" reverse="yes" timeformat="%x"]] + +--[[smcv]] -- cgit v1.2.3