Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-14 20:22:29

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

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

#3 2005-09-14 21:03:16

LeeStewart
Archived Plugin Author
From: Boston, MA, US
Registered: 2005-07-25
Posts: 81
Website

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>
&lt;img src=“images/header_now_playing.gif” alt=“Now Playing” width=“510” height=“36”>
&lt;txp:article_custom listform=“now_playing” limit=“1” section=“shows” />

&lt;img src=“images/header_next_up.gif” alt=“Next Up” width=“510” height=“36”>
&lt;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

#4 2005-09-14 22:15:55

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

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

#5 2005-09-17 04:02:30

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

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

#6 2005-10-20 03:59:32

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

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

#7 2005-10-22 21:47:32

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

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

Board footer

Powered by FluxBB