X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/04e95f185e9613700dc64364d60d7d5ef2454945..d0672fbb7cee5307330f43a0dce3e7535b1e67df:/doc/patchqueue/datearchives-plugin.mdwn?ds=inline diff --git a/doc/patchqueue/datearchives-plugin.mdwn b/doc/patchqueue/datearchives-plugin.mdwn index 5814a20df..b8566f8cf 100644 --- a/doc/patchqueue/datearchives-plugin.mdwn +++ b/doc/patchqueue/datearchives-plugin.mdwn @@ -39,4 +39,32 @@ Index: IkiWiki/Plugin/datearchives.pm +1 -This works (although accessing `%IkiWiki::pagectime` is not too clever), but it would be far more useful if the date pages were automatically created and populated with the relevant posts. A [[Pagespec]] works perfectly for displaying the relevant content, but we're still left with the issue of actually creating the page. What's the Right Way to do this? We could create them in the RCS working copy and check them in, or create them directly in the output directory... (I'd also like to create an option for the tags plugin to auto-create its targets in the same way). Any opinions? :-) \ No newline at end of file +This works (although accessing `%IkiWiki::pagectime` is not too clever), but it would be far more useful if the date pages were automatically created and populated with the relevant posts. A [[Pagespec]] works perfectly for displaying the relevant content, but we're still left with the issue of actually creating the page. What's the Right Way to do this? We could create them in the RCS working copy and check them in, or create them directly in the output directory... (I'd also like to create an option for the tags plugin to auto-create its targets in the same way). Any opinions? :-) + +> Ok, first, I don't understand what your plugin does. Maybe I need to get +> some sleep, but a better explanation might help. :-) It seems to make +> links from pages to the archive pages? But I don't understand why you +> want such links .. wouldn't a sidebar with links to the available archive +> pages work better? Or something else, depending on personal preference. +> +> Secondly, you're certianly not the first to wat to do data based archive +> pages. So far I have successfully punted the issue of creating these +> pages out of ikiwiki by pointing out that everyone wants them to be +> _different_, and suggesting people set up cron jobs or other machinery to +> generate the kinds of archives that they like. This makes me happy +> because generalizing all the possible ways people might want to do date +> based archives and somehow bolting support for creating them onto the +> size of ikiwiki seems to be a recipe for a mess. +> +> A few examples of ikiwiki sites with date archives: +> and +> --[[Joey]] + +>> Yeah, it wasn't much of a description, was it? ;-) It's an attempt to emulate the style of Wordpress and other popular blog platforms, which can link a post's creation date to YYY/MM/DD archive pages, which then list all the relevant posts. My use-case is on a blog page which in-lines (via pagespecs) recent blog posts. + +>> I agree with not adding this kind of functionality to the core. :-) I simply didn't want to have break links when I convert to IkiWiki. I guess I'll just play around with the page-creation thing myself then. Feel free to delete this from the queue. :-) --Ben + +>>> Ah, I get it, I hadn't realized it was making the date into a link. +>>> No reason to delete this from the queue, it's a reasonable plugin. I +>>> might move it to the contributed plugins directory as it's a bit +>>> specialised to be included in ikiwiki though. --[[Joey]]