]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/pagestats:_ability_to_limit_to_links_from_certain_pages.mdwn
Tag patches with the plugin to which they apply, or core
[ikiwiki.git] / doc / todo / pagestats:_ability_to_limit_to_links_from_certain_pages.mdwn
1 The `among` branch in my git repository refactors IkiWiki::Render a
2 bit, then uses this refactoring to add a [[ikiwiki/directive/pagestats]]
3 parameter `among` that will only count links from pages that match a
4 given [[ikiwiki/PageSpec]]. From its documentation:
5
6 > The optional `among` parameter limits counting to pages that match a
7 > [[ikiwiki/PageSpec]]. For instance, to display a cloud of tags used on blog
8 > entries, you could use:
9
10 >        \[[!pagestats pages="tags/*" among="blog/posts/*"]]
11
12 > or to display a cloud of tags related to Linux, you could use:
13
14 >        \[[!pagestats pages="tags/* and not tags/linux" among="tagged(linux)"]]
15
16 Suggestions for a better parameter name are welcome. --[[smcv]]