Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Dates associated with articles
I am using textpattern to set up a site for an arts presenting organization, so that almost every article will represent an event with a date associated with it. Would it make sense to use the “posted” date assocated with articles for that? Of course most of the dates would be in the future . . .
or would it be easier to do this somehow with custom fields?
Yes, I have tried turning it off and on.
Offline
#2 2005-09-14 20:48:04
- Niconemo
- Member
- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: Dates associated with articles
Not exactly an answer to your very question but do you know this plugin ? jmc_event_manager
Nico
Offline
Re: Dates associated with articles
With The Rock Candy Show, the “Now Playing” and “Next Up” shows are controlled by the “Published At” date on the article form. It’s very easy to code, although it’s a little rough for the producers to remember to update that field properly.
Basically the main page has the following:
<pre>
<img src=“images/header_now_playing.gif” alt=“Now Playing” width=“510” height=“36”>
<txp:article_custom listform=“now_playing” limit=“1” section=“shows” />
<img src=“images/header_next_up.gif” alt=“Next Up” width=“510” height=“36”>
<txp:article_custom form=“next_up” sortdir=“asc” time=“future” limit=“1” section=“shows” />
</pre>
It works like magic when the next show is being aired, then the system displays that show and then the following month’s taping.
[Lee]
Monkeys could have written a better post..
Offline
Re: Dates associated with articles
That looks perfect! How do you get the shows to show just month/year on the “past shows” page? My guess:
<code><txp:posted format=”%b %Y” /></code>
in another custom article form?
Last edited by alesh (2005-09-14 22:16:26)
Yes, I have tried turning it off and on.
Offline
Re: Dates associated with articles
Help! I’m trying to do it, but TXP won’t display articles that have a published date that is in the future!
Nevermind, I see.
Last edited by alesh (2005-09-17 04:17:01)
Yes, I have tried turning it off and on.
Offline
Re: Dates associated with articles
I’m using something like this <txp:article_custom form="next_up" sortdir="asc" time="future" limit="1" section="shows" />
on my website. A few days ago, it had the event occuring Nov 18 appear, but now it has the event occuring on Nov 23 appear.
What’s going on? Is it a problem with the server time?
bludrop studios .::. Creative Expression
Offline
Re: Dates associated with articles
Does anybody know why this might be happening? This is a very important issue that needs to be solved.
I have a feeling it’s not a problem with the server time.
bludrop studios .::. Creative Expression
Offline
Pages: 1