Alan wrote:

* Geoff Howard <[EMAIL PROTECTED]> [2004-03-23 12:27]:

Alan wrote:


I asked this question. Now I'm back. :^)

  Would the above simply generate a calendar without an iCal
  source? My blog entries are not stored in iCal.

Nope. But in this case, you'd need to find a way to convert a list of your entries to whatever intermediate format and then take advantage of the rest of the bits of the puzzle being considered.


    I think there is value to a generator that simply produces a
    blank calendar, with dates grouped by month and week.

How else would one do calendar based navigation?

I think this would be possible to initiate with an empty "intermediate format" document in the proposed scenario. The point is one would generally want to start with a list of events (calendar entries) and "decorate" that with the calendar (date) data around it. If you start with the caledar, you would probably have a clumsy or inefficient time getting the event data.


With made up xml in your case,

<cal:calendar start-date="03-01-2004" view="month">
</cal:calendar>

might result after the "decoration" step in what you want, something like:

<cal:calendar start-date="03-01-2004" view="month">
  <month name="March">
    <week number="1">
      <leading-days month="February">
        <day name="Sunday" date="29"/>
      </leading-days>
      <day name="Monday" date="1"/>
      <day name="Tuesday date="2"/>
      ...
    </week>
    ...
  </month>
</cal:calendar>

If you want to indicate where your blog entries actually are (by linking those dates, but not the others for example), it will be better/easier/more-resuable IHMO to start with a list of them, rather than start with the calendar and do it the other way around. If you're in a hurry though, you may want to just do something that works for you. I can't implement this kind of thing right now even though I'm interested in the discussion and it wouldn't be a long project after the details of the formats are worked out.

BTW, I have heard there was such a calendar "thing" in Cocoon 1. Has anyone dug that up and looked at it? <cant-resist>Of course it may be out of date now!<cant-resist>

Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to