Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-12-21 01:24:44
- ookpik
- Member
- Registered: 2005-05-05
- Posts: 18
Events calendar set up with custom fields
This is a Christian hymn composer’s website that I did a bunch of development work on in the summer. (I take no responsibility for the design, and I don’t think they’re done with it yet either.)
One of the tricky bits was the events calendar, which I know has been a common sticking point with Textpattern. I set this one up with custom fields and no particular plugins. It allows for multi-day events, and displays each event until the end date.
Mainly, I added a “Start date” custom field, which has to be filled in (yyyy-mm-dd) for every calendar article. The posting date is set to the end date of the event, even if it is the same as the start date. Those two fields allow for all the necessary sorting and display.
<txp:article form=“calendar-month” sortby=“custom_2,posted” sortdir=“asc” time=“future” limit=“999” />
After that, it’s just about adding either custom fields or categories for location, time, etc. In this case, the events didn’t need to be grouped by venue or anything, so I just used custom fields.
The calendar-month form uses a bunch of php to format the dates and so on. If anybody wants it I can post it. This is from May— maybe everyone has already found a sweet calendar plugin and doesn’t need this nonsense anymore!
Last edited by ookpik (2006-12-21 01:26:12)
Offline
Re: Events calendar set up with custom fields
Nice stuff on the calendar.
Note, that this is around the corner. Should be a good boon for the community.
M
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#3 2006-12-22 18:25:00
- ookpik
- Member
- Registered: 2005-05-05
- Posts: 18
Re: Events calendar set up with custom fields
Cool. That project looks more streamlined than the more specialized calendar plugins I’ve seen around so far. Looking forward to it!
Offline
Re: Events calendar set up with custom fields
ma_smith wrote:
Nice stuff on the calendar.
Note, that this is around the corner. Should be a good boon for the community.
Any news on whether has been finished? I would like to s ee an exmaple site that is using calendar for event listings..
…. texted postive
Offline
Re: Events calendar set up with custom fields
jmc_event_manager doesn’t quite do the level of grouping you’re after, but I’d claim is still worth a look :)
BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside
Offline