I was wondering if anyone has a suggestion on the best and easiest way to generate a set of pre-values for a drop down list in Contour which list every coming Monday and Wednesday for the next 6 months. e.g.
Create your own fieldtype and in the class get todays date and from get all the coming Mondays and Wednesdays. Take a look at contour documentation on how to create your own field type also for help with dates etc use something like noda time http://nodatime.org/
Generate pre-value dates
Hi
I was wondering if anyone has a suggestion on the best and easiest way to generate a set of pre-values for a drop down list in Contour which list every coming Monday and Wednesday for the next 6 months. e.g.
Monday 1st October
Wednesday 3rd October
Monday 8th October
etc...
Dan,
Create your own fieldtype and in the class get todays date and from get all the coming Mondays and Wednesdays. Take a look at contour documentation on how to create your own field type also for help with dates etc use something like noda time http://nodatime.org/
Regards
Ismail
is working on a reply...