tussy — 2013-03-25T16:28:55-04:00 — #1
What is the best way to automatically post and remove content to a website based on date?
For instance... i have an upcoming event box on my homepage... instead of manually updating the box a few times a month... is it possible to use a bit of jQuery to automatically post the latest upcoming event... when the events' date expires... i would like the next upcoming event to automatically take its place.
fyi - my site is a static html5 website. i am open for other suggestions as well. thanks.
knight_yoshi — 2013-03-25T18:31:26-04:00 — #2
paul_wilkins — 2013-03-25T19:13:33-04:00 — #3
You could have a data file, that you populate with events, so that scripting can then use the JSON protocol to read in that data and do things based on it.
That way, it is only the contents of that data file that would need to be edited, which is a simple way of doing things.