A Simple Date Wise Listing Of Archives

Topics: Developer Thread, Feature Request, Suggestion, Support Request
Jan 8, 2012 at 11:34 AM
Edited Jan 8, 2012 at 11:36 AM

 I'm looking to see a simple date wise listing of archives (without the use of calendar control). Something on the lines of:

http://www.usabilitypost.com/archive/

or

http://www.randsinrepose.com/archives.html

I know there's a version that lets me see a list by categories but is there something that lets me have an archive page without showing the calendars that appear in archives.aspx?

Jan 24, 2012 at 7:32 PM
Edited Jan 24, 2012 at 7:38 PM

Ended up writing this implementation.

The final version looks like this:

http://www.thousandtyone.com/blog/archivelisting.aspx

Do let me know if it will help to just do a zip or upload it as a patch.

It is quiet literally a page and a control with code behind files so should be easy to review and checkin.

Coordinator
Jan 25, 2012 at 2:57 AM

That looks great, can you upload a zip with the page and the control to the pathces section (under source control). I'll add it to the 2.3.1 release.

 

 

Jan 25, 2012 at 10:12 PM
Edited Jan 25, 2012 at 10:18 PM

Done. The patch is not a true SVN Patch but it contains all the files I touched and a readme file to describe the changes that were done. These changes were done on 2.3.2 folder inside branches on revision 64836.

Sorry about not doing this as a proper SVN patch.

If you just overwrite these files on a fresh checkout you should be able to do a diff on them.

Hoping that won't be a major problem.

Note that the patch upload just kept saying "Uploading" forever and when I cancelled out I noticed that the upload was successful. I downloaded the zip and it seemed to open fine.

If there are issues please do let me know and I'll upload the file again.

My email is mentioned in the readme file. Feel free to email me or reply here if there are any additional changes need to done for this patch to be approved.

On a side note, some navigational enhancements and user interface elements that will help with CSS based formatting of the entire archives section have also been added. 

All changes done are explained in the readme file.

Hope this helps.

 

Jan 25, 2012 at 10:27 PM
Edited Jan 25, 2012 at 10:31 PM

Also note that the underlying assumption in the implementation was that when I do "EntryCollection entries = requestPage.DataService.GetEntries(false);" entries always contains the entries sorted in reverse chronological order.

This is exactly what was happening.

If this was to change in future because there was a change in the way GetEntires works and it started returning non-sorted entries or using a different sort order, this implementation will break.

Let me know if there needs to be an explicit sorting done before listing these entires and adding them to the HTML table.