Date multisort?

Options

I have a long list of historical events I'd like to sort in two ways: chronological, and by month and day. Chronological is easy; the multidimensional sort is the question.

Here is the original list when it was stored in a database:

http://telegraph.civilwar.org/cmsscripts/thisday/alldays.html

That's Javascript generated in PHP (so it can be written back into CMS) with a little CSS thrown in.

The content type is already set up and has all the same information in it: date in the form of 1/26/2010, text, and link. That's all there is to the data.

So, my question is: can this be done with the CT in CMS?

Tagged:

Comments

  • Jim,

    Is your question "can one create the same Javascript-based rendering as shown at http://telegraph.civilwar.org/cmsscripts/thisday/alldays.html?" If so, then I think the answer is yes. You could create a list, sorted by date, rendered using a List Template that created nothing but Javascript (like your PHP code does.)

  • Bruce Keilin:

    Jim,

    Is your question "can one create the same Javascript-based rendering as shown at http://telegraph.civilwar.org/cmsscripts/thisday/alldays.html?" If so, then I think the answer is yes. You could create a list, sorted by date, rendered using a List Template that created nothing but Javascript (like your PHP code does.)

    Bruce, thanks for the reply! I was actually asking if, using a CT and lists in CMS, I could reproduce the month-day format seen at that link without Javascript.

  • Jim Drey:

    Bruce, thanks for the reply! I was actually asking if, using a CT and lists in CMS, I could reproduce the month-day format seen at that link without Javascript.

    Naruhodo

    I think you can still do this. It's very similar to what I explained on slides 15 & 16 of although instead of just displaying a link each time you reach a new month, you'll want to display the month for the first item of the month and the day and title for each item. Take a look at that and let me know if that helps.

Categories