Expiring Documents

4 posts by 3 authors in: Forums > CMS Builder
Last Post: June 22, 2010   (RSS)

By dunlap - June 21, 2010

I saw an example in the manual that allows you to set a time for the entry to stay posted. Then it expires & is not available. Where can I set this? I did not see it in date feature to set expiration.



Thanks

Re: [dunlap] Expiring Documents

By Jason - June 21, 2010

Hi,

The documentation can be found here:
http://www.interactivetools.com/docs/cmsbuilder/special_fieldnames.html

What you do is you create a field with a special name. In this case, it's a date field called removeDate. If you create this field in your section and set it for a record, then that record will no longer be available after that date.

Hope this helps. Let me know if you have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Perchpole] Expiring Documents

By Jason - June 22, 2010

Hi,

You could set a default option for the date, but the default would be set to the current date, which you wouldn't want.

Another thing you could do is to not use the removeDate field at all, and just use code to not return any record that was created before today.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/