Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
Hi,

I would like to reproduce the functionality here: http://www.couchcms.com/docs/tutorials/ ... log-2.html for "Listing Archives", but rather than use the system provided creation date, I would like to use an arbitrary date that is entered on the cloned Couch page. (The items to list are go-kart race results, and may not always be entered on the day of the race. Race Date is a field on the page).

What is the best way to accomplish this?

Many thanks,

Mark
Hi Mark,

I think, if I roll up my sleeves and give it sufficient time I should be able to come up with a reasonable simulation of the 'archives' functionality using a custom field as you desire. However, it will certainly not be as efficient as the built-in function which is optimized to use the publish-date of the cloned pages.

My suggestion is that instead of reinventing the existing functionality, why don't we simply use the publish-date as the date of the go-cart event? Despite its name, the 'publish-date' need not necessarily be the date the page was published (it makes sense only for blog postings, for example).
We can (and should) use it to represent the date of the event the cloned page represents - in this case the date of the race. The user needs to only go to the drop down and set the publish date to match the event date.
Have you taken a look at http://www.couchcms.com/docs/concepts/e ... endar.html where an event calender is described? Your case is very similar to the one described there and it uses the system publish-date to categorize events.

Please let me know if this could work for you.

Thanks
Thanks for the reply, KK. I'll take a look. I think I must have assumed the field was a system generated timestamp.

Regards,

Mark
3 posts Page 1 of 1
cron