Display records by date

6 posts by 5 authors in: Forums > CMS Builder
Last Post: September 7, 2009   (RSS)

By aliciald - June 30, 2009

Hello!

I am making an events listing and I have added a date field and would like to be able to "expire" the record (so to speak) after the event date. So, I want to show the record on my list page until it reaches the date, if that makes sense. For example:

Record 1
Title: Craft Fair
Date: June 30, 2009

After June 30th, I don't want to display this record. Any guidance is GREATLY appreciated!

Best,

Alicia
: )

Re: [aliciald] Display records by date

By Toledoh - June 30, 2009

Have a look at removeDate fieldname here http://www.interactivetools.com/docs/cmsbuilder/special_fieldnames.html

I just did the same thing, had a "start date" field and a "removeDate" field (being the "end date").

This way, if I had an event that went for 3 days, the event would stay displayed until the conclusion of the event.

Cheers,
Cheers,

Tim (toledoh.com.au)

Re: [aliciald] Display records by date

By ross - July 3, 2009

Hi Alicia

Thanks for posting!

I agree with Tim. Check out that page in our docs on special field names. If you set up the expiry field, it will actually just work automatically. You don't need to change any code on your pages.

I suggest also using the next expires checkbox as well. Otherwise, you'll need to always have a proper expiry date for every listing.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Display records by date

By Codee - September 4, 2009

Ross,
what is the "next expires" checkbox? Don't see it in the documentation.

Also, does the removeDate field force the record to be deleted or just into a hidden mode? It would be good to have a way to just remove it from view on a certain date but keep the record in the database if needed.

Thanks,

Re: [chris] Display records by date

By Codee - September 7, 2009

Thanks for the clarification, Chris.