ROL-473: Page view for specific date should show all entries for datehttp://opensource2.atlassian.com/projects/roller/browse/ROL-473

This fix is a pretty significant change, so I'm looking for feedback. To fix this old bug I had to introduce the idea of current day, day, month and entry pages. That sounds drastic, but all old permalinks still work (even the old /page/<handle>/YYYYMMDD#<anchor> ones).

Here's how the four types of Roller blog URLs work:

Current day page
     /page/<handle>/
On the current day page, Roller will show the most recent N blog entries (not just those for the day). At the end of the page, a previous link points to day page of entries before the ones shown (and the link is displayed as the day's date). This works exactly as before.

Day page
     /page/<handle>/YYYYMMDD
On a day page, Roller will show all of the entries for a specific day. At the end of the page, a next/previous link allows navigation to next and previous day of entries (and the links are displayed as the day's dates). Before, day pages always showed N entries (where usually N=15), but now they'll show only a day's worth (e.g. 1-3 entries).

Month page
     /page/<handle>/YYYYMM
On a month page, Roller will show the most recent N blog entries in the month. At the end of the page, a previous link points to day page of entries before the ones shown. This is new; we didn't have month pages before.

Entry page
    /page/<handle>?entry=<anchor>
On an entry page, one entry is shown. The next/prev links link to the next and previous entries (and the links are displayed as the entry titles, nicely truncated). This one also works exactly as before.

I also changed the calendar macro/JSP tag, so that the next/previous month links point to next/previos month links.

I've got this deployed on my blog now, in case you want to experiment with permalinks, the next/prev stuff and the calendar links.

- Dave



Reply via email to