diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-19 06:58:46 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-08-19 06:58:46 +0000 |
commit | fbf444fc39deae9447830fd40a055b45d2660abd (patch) | |
tree | 43f2aab332dd2d4f552f10b4357ffb11aea97b02 /doc/todo | |
parent | e30ba9ce7f9ead64901fb6f0a5764c6aff00f5f9 (diff) | |
download | ikiwiki-fbf444fc39deae9447830fd40a055b45d2660abd.tar ikiwiki-fbf444fc39deae9447830fd40a055b45d2660abd.tar.gz |
web commit by ManojSrivastava
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/todo/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn b/doc/todo/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn index d52772a67..1ea0567aa 100644 --- a/doc/todo/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn +++ b/doc/todo/calendar_--_archive_browsing_via_a_calendar_frontend.mdwn @@ -35,6 +35,8 @@ ManojSrivastava Since this is a little bit er, stalled, I'll post here the stuff Manoj mailed me, and my response to it. --[[Joey]] + + [[tag patch]] <pre> @@ -665,3 +667,15 @@ I've been looking over the calendar plugin. Some items: And that's all I've heard so far. Hoping I didn't miss another patch? --[[Joey]] + +No, you did not. But I am back to hacking on this, and I think I have discovered a major problem with my approach. One of the problems with the current plugin is that the goal of a calendar is to create a calendar, either a month or year based on, that provides links to blogs for all the days in (for the month calendar), and all the months (in a year calendar) in which there have been blog postings. For the monthly calendar, it needs to know the previous and next months where there is a posting, and for the year calendar, it needs to know which of the previous (next) years had entries. + +Now, this means that it needs to know about at _all_ pages that meet the pagespec, and stash that information, before it begins generating the calandar in question, in order to calculate how to create the symlinks. And, of course, all pages that have calendars on them might need to change anytime a page that meets the pagespec is added; and again at midnight, when the current day changes. + +keys %IkiWiki::pagectime followed by pagespec_match would probably do the trick -- + + @Interesting = grep (pagespec_match($_,$pagespec), keys %IkiWiki::pagectime); + +When is the %IkiWiki::pagectime hash created? Can it be used in the preprocess hook? + +--[[ManojSrivastava]]
\ No newline at end of file |