I am new to Silverstripe (which is amazing btw) so sorry if this has an obvious answer :)
Is there a way to override the Save event in the admin CMS?
What I am trying to do is save multiple records to the database at the same time.
So I have 2 date fields, StartDate & EndDate (+ some other fields)
What I want to do is loop through the dates and add/edit entries depending on the date range. For example if I choose:
2009-03-27 - 2009-03-31
It would save 5 records to the database.
I can write the function to do this no problem, but how do I get it to be called when I click the 'Save' button?
Hope this makes sense.