Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-08 14:06:32

macriis
New Member
Registered: 2007-10-08
Posts: 6

Show articles 90 days before posting date

Hi guys and girls

I’m trying to build a page showing coming events 90 days ahead and hide past events. I’ve tried to use the plugin ras_if_dates and aaa_dates without any positive results.

The events is represented through an article with a timestamp with a date of the event in the future.

Does anyone know a way to solve this with Textpattern codes or specific plugins?

Regards,

macriis

Offline

#2 2007-10-08 14:25:57

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Show articles 90 days before posting date

Have a look at chh_article_custom and it’s attributes, especially ‘time’.

Offline

#3 2007-10-11 14:55:42

macriis
New Member
Registered: 2007-10-08
Posts: 6

Re: Show articles 90 days before posting date

Thanks Els

Unfortunately the plug-in doesn’t work with the newest version of Textpattern (4.0.5). I get a lot of errors like:

Textpattern Notice: Unknown tag attribute: listform on line 605

…when I use the time attribute on the chh_article_custom. And the forum thread http://forum.textpattern.com/viewtopic.php?id=2306 seems to show that the plug-in isn’t developed anymore.

Some posts in the thread suggests that the Textpattern preference Production status set to Live which then produces no errors. But I guess that the errors still exists but just isn’t shown. I would like a more solid solution and preferably a plug-in that’s up-to-date with Textpattern 4.0.5.

Can you or anyone else point to a working solution?

Offline

#4 2007-10-11 15:02:23

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Show articles 90 days before posting date

macriis wrote:

Textpattern Notice:

It’s not an error, it’s a notice. If the plugin works, set production status to live and don’t worry about it :)

Offline

#5 2007-10-11 23:19:18

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Show articles 90 days before posting date

Both aaa_dates and ras_if_dates are restricted to conditional display of articles returned by the article tag. If you are having trouble displaying future posting date articles, you might check the “time” attribute for your txp:article tag to see if that won’t suffice by itself to solve your problem; using that and the conditionals may be your best option.

txp:article

Offline

Board footer

Powered by FluxBB