]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/tag/discussion.mdwn
ikiwiki (3.20130711) unstable; urgency=low
[git.ikiwiki.info.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.
3 There are clearly many ways to do this, but any opinions on which is the cleanest?
5 --Ben
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.
11 --[[Joey]]
13 Thanks. That works fine.
15 --Ben
17 @Ben: could you publish the code for that?
19 --[[David_Riebenbauer]]
21 AOLMODE=true echo "I too would really like this feature, which would make cgi free life much 
22 better" --[[DavidBremner]]
24 Please make the actual text used a template some way or another. I may want `map` instead of `inline`. --[[madduck]]
27 See [[todo/auto-create tag pages according to a template]]
29 -- Jeremy Schultz <jeremy.schultz@uleth.ca>
31 `tag_autocreate` can now enable this. --[[Joey]]