Is there an easy and obvious way to duplicate a collection? I may have a number of changes to make to one. And the customer will need to consider/edit the existing 370+ entries in the collection. I’m thinking it might be easier to replicate the collection and then the customer can spend as long as necessary editing the entries and then I’ll just switch the code to use the new collection.

Duplicating a collection?
- Graham
- Thread is marked as Resolved.
-
-
Bumped! Anyone advise? Thanks
-
My first thought would be... you can create an app for that!
-
Hi Graham,
You can create the new Collection via the control panel, then use the import API to fetch all the items from the old Collection and add them to the new Collection.
Out of curiosity, what is the reason for not editing the original collection directly without duplicating it?
-
Thanks. I'll give that a try. I obviously missed that.
The changes are such that it will affect pages that are doing collection searches. The customer staff are not full time and it will take them a few days to adjust the existing 370+ entries. While they are doing that, existing searches will break.
-
I see. Just note that if you are doing a content search (with perch_content_search()), the search results will include both the old and the new collections.
-
Thanks. No problem as I'm not doing that.