Migrating to TextPattern: Surrounding Articles
Part 4 in our default section implementation is improving our archive navigation. The traditional weblog solution is a calendar view, displaying the month in which the article was posted along with links to other days with articles.
Out of the box, TextPattern doesn’t provide a calendar view. I don’t think that I will miss it. I’ve always felt a bit of calendar pressure – sometimes delaying articles to light up the calendar rather than posting when the idea is fresh. But I’ve always kept it because I didn’t have a good alternative.
For TextPattern, I’ve created the idx_surrounding_articles tag to list articles surrounding the current article. The tag always sorts articles by time, descending. The limit attribute has been redefined to apply to the preceding and succeeding articles individually (limit preceding articles, bare title to current article, limit succeeding articles). And like all tags in this package, it is section aware.
Download version 0.3 of the idx_defaultSection plugin for TextPattern.