2008-07-21 13:46:35 +02:00
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.
2007-07-12 12:41:35 +02:00
--Ben
@Ben: could you publish the code for that?
2009-09-25 06:35:43 +02:00
--[[David_Riebenbauer]]
2008-03-06 08:58:06 +01:00
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
2008-03-06 08:58:06 +01:00
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>