Clone Item makes a copy of an item so you can start a new one from it instead of an empty form. It works the same on Services, Posts, Partners, Offices and Pages.
Make a copy
- Open the list, such as Services.
- On the row of the item you want to copy, click Clone Item. You can also click it from the item's own page.
- The copy appears in the list with
(copy)after its name or title. - Open the copy, change what you need, and save it.
What the copy keeps
| The copy | |
|---|---|
| Name or Title | The original's, followed by (copy). |
| Slug | A new one, written from the new name or title, so the copy has its own address. |
| Everything else in the form | The same as the original: description or content, category, job, author, Is Active, the address, phones, emails and social networks of an office, and the values of your custom fields. |
| Media | The same files as the original. They are not duplicated: both items use the same files, so the copy takes no storage space. Removing a file from the copy leaves it on the original. |
Because Is Active is copied, the copy of an active item is active too, and shows on your site at once. Switch the copy off right after cloning it if you do not want it seen until it is ready.
For developers
- The action is
App\Front\Actions\CloneItem: it replicates the record without its slug, appends(copy)totitleorname, saves, and attaches the original's media to the copy.