]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/tag/discussion.mdwn
dca1b93891b43ea383a3345c507bf91ba1afe740
[ikiwiki.git] / doc / plugins / tag / discussion.mdwn
1 I'd like to modify this plugin such that the tag pages are automatically created and populated with a list of relevant posts. The content of the tag page is simply `"\[[inline pages="link(tag/$tag)"]]`. The tag plugin will have to determine whether a page for the given tag already exists, and if not use that Markdown fragment to  generate it.
2
3 There are clearly many ways to do this, but any opinions on which is the cleanest?
4
5 --Ben
6
7 It might work to use the 'change' hook, since that's called at the very end
8 of `refresh()`. The hook could add the tag pages and re-run `refresh()`,
9 taking appropriate care to avoid looping forever.
10
11 --[[Joey]]
12
13 Thanks. That works fine.
14
15 --Ben