I’ve been working on a redesign and restructuring of EuniceWilliams.com for the past few days. I decided to run the site on Textpattern, so I’ve been coming up with some new techniques to make sure all the sections work properly. One of the requirements was that it has a working events calendar for all their performances. The solution I came up with is pretty simple, no plugins necessary. Just an editing of the date field in an article.
I created a section called performances for all the events, then a form called performances that would style the date differently than the default form. Finally I created this txp:article_custom tag to display just the specified section, form, and only dates in the future.
<txp:article_custom limit="100" sort="Posted asc" form="performances" section="performances" time="future" />
Now on the performances page you’ll see only upcoming dates. Once the date passes, it drops off the performances page, just stays in the Textpattern articles, in case an archive needs to be made.
Dandee
posted on Dec 14, 04:56 PMVery nice. When I get TXP installed and start messing with it you will have to help me that too.