X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/2618e5b406f4298868e997a8a65f2601a76ea962..ff9a61b48100c66d2a212270017d7b5cae0386ac:/doc/plugins/tag/discussion.mdwn diff --git a/doc/plugins/tag/discussion.mdwn b/doc/plugins/tag/discussion.mdwn index 1bccf3d9c..7e7b88bc5 100644 --- a/doc/plugins/tag/discussion.mdwn +++ b/doc/plugins/tag/discussion.mdwn @@ -1,5 +1,24 @@ -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. +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. There are clearly many ways to do this, but any opinions on which is the cleanest? ---Ben \ No newline at end of file +--Ben + +It might work to use the 'change' hook, since that's called at the very end +of `refresh()`. The hook could add the tag pages and re-run `refresh()`, +taking appropriate care to avoid looping forever. + +--[[Joey]] + +Thanks. That works fine. + +--Ben + +@Ben: could you publish the code for that? + +--David Riebenbauer + +AOLMODE=true echo "I too would really like this feature, which would make cgi free life much +better" --[[DavidBremner]] + +Please make the actual text used a template some way or another. I may want `map` instead of `inline`. --[[madduck]]