]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/Set_arbitrary_date_to_be_used_by_calendar_plugin/discussion.mdwn
web commit by https://id.mayfirst.org/jamie/: woops - forgot the patch
[ikiwiki.git] / doc / todo / Set_arbitrary_date_to_be_used_by_calendar_plugin / discussion.mdwn
1 > Thanks for coming up with a patch.. Let me make sure I understand its
2 > rationalle.
3
4 > The meta plugin already allows modifying the page creation time,
5 > which is what the calendar plugin uses.
6
7 > So, it seems to me that the use of this patch is for recording events in
8 > the future. You'd not want a page for a future event to claim it was
9 > created in the future. I suppose you could also use it for events in the
10 > past, if you didn't want to change the creation time for some reason.
11 > (Perhaps you're doing a calendar of historical events, for example.)
12 >
13 > Accurate? --[[Joey]]
14
15 >> Thanks for the feedback. Thinking about what you said ... I suspect my patch 
16 >> doesn't belong in the calendar plugin, which does a very specific thing 
17 >> (create a calendar to show when blog posts were created). I'm really angling 
18 >> toward an event calendar (as mentioned on [[todo/plugin]]). I'd like to preserve 
19 >> the page creation time - which is useful and important information in its own right 
20 >> - and be able to generate a calendar with links to particular posts that will show 
21 >> up on the calendar based on an arbitrary date. Perhaps this should be re-considered 
22 >> as a separate plugin? --[[Jamie]]
23
24 >>> I think it makes sense to have only one calendar, if possible.
25 >>> I think your event stuff is fine, the only thing we might want to add
26 >>> is a config option for the calendar, to control whether it looks at the
27 >>> event date, or the creation date. --[[Joey]]
28
29 >>>> Ok - I can work on that. One question - the existing calendar module has it's own 
30 >>>> functions for building an html display of a calendar. HTML::CalendarMonth seems to 
31 >>>> provide that functionality. My instincts are to rip out the code in the calendar plugin
32 >>>> and use the existing module. On the other hand, that creates added dependencies. 
33 >>>> Suggestions anyone? --[[Jamie]]
34
35 >>>>> I'm all for ripping code out of ikiwiki where CPAN can be used, as
36 >>>>> long as the resulting code and html are good. --[[Joey]]
37