ikiwiki/doc/plugins/tag/discussion.mdwn

32 lines
1.1 KiB
Plaintext
Raw Normal View History

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.
2007-03-12 03:08:49 +01:00
There are clearly many ways to do this, but any opinions on which is the cleanest?
2007-03-12 04:42:45 +01:00
--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]]
2007-03-15 05:16:43 +01:00
Thanks. That works fine.
--Ben
@Ben: could you publish the code for that?
--[[David_Riebenbauer]]
2008-03-11 15:02:12 +01:00
AOLMODE=true echo "I too would really like this feature, which would make cgi free life much
better" --[[DavidBremner]]
2008-03-11 15:02:12 +01:00
Please make the actual text used a template some way or another. I may want `map` instead of `inline`. --[[madduck]]
2009-02-06 20:36:04 +01:00
2009-02-20 11:05:57 +01:00
See [[todo/auto-create tag pages according to a template]]
2009-02-06 20:36:04 +01:00
-- Jeremy Schultz <jeremy.schultz@uleth.ca>
2010-04-22 03:57:12 +02:00
`tag_autocreate` can now enable this. --[[Joey]]