Allow admin/editors to do the following:
  • Click Clone icon from any existing Drama, Movie, SP which brings them to a Clone page
  • Users can choose to Clone to one of the following post types: Drama, Movie or SP (only one)
  • Users can fill in a text field to update the Cloned Title. If user doesn't input anything, then the field is already auto-filled and Post Title and slug URL needs to be updated after the clone is finished.
  • Users can then select what they want to clone:
-- Options are: 1) Clone everything 2) Clone Cast Only 3) Clone Crew Only
  • Finally click Clone button
  • Upon successful cloning, users are brought to a temporary page with the SUCCESS message. A link is also available if the redirect doesn't work.
  • Users are finally redirected to the newly Cloned page to edit
The flow looks like this:
Drama/Movie/SP page -> Clone options page -> Redirects to Newly Cloned page
For testing:
Clone one of each Post Type: Drama, Movie or SP
For Cloned title: Be sure to change this because by default it'll be "cloned-name-of-cloned-drama"
If you rename it, the title will be retained for the newly cloned page and you won't need to edit the Title and the slug URL.
Check that everything is copied over
Check that Cast and/or Crew's Sort Order is preserved
Test each of the different options: 1) Clone everything 2) Clone Cast Only 3) Clone Crew Only
Notes:
Timeslot (the day of the week) and Crew Roles need to be resaved after a clone.
The values are copied over, but will not show.
To fix this for Crew Roles, Edit in the front-facing page for each Crew and Submit/Save.
Timeslot (the day of the week) most likely needs to be changed, but if you Edit and Submit/Save the entire Drama/Movie/SP, Timeslot will show up.
When cloning Cast and/or Crew, Sort Order will be preserved.