London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Jacob Pretorius
Jul 1, 2019
  5558
(6 votes)

How to easily copy content between pages

Working with large Episerver builds often comes with unique challenges both from the content management side and from a business rule perspective.

Recently one of our clients at Zone decided they wanted to update and restructure large parts of their site layout. Based on other external factors, this would create some extra editor overhead to keep everything running smoothly.

Occasionally the editors will need to manually copy content between pages to align marketing strategies. I saw this as an interesting problem that we could make as painless as possible with a custom admin plugin.

The plugin allows editors to choose which language they want, and if they only want culture specific properties shown. To make it as intuitive as possible they have two content trees, one for the 'source' and one for the 'destination' page.

Based on the source page selection and culture-specific setting, the available properties for that page type will be loaded automatically.

The plugin isn't sensitive to which types of pages are selected; the only requirement is that the selected properties are the same type and have the same name on both source and destination page types.

By default the plugin will create a new draft on the 'destination' page if there aren't any issues with the copy process. If there is an outstanding draft on the 'destination' page already, the plugin will let the editor know and not make any further changes to that draft.

Editors can also choose to skip the draft process and overwrite any outstanding drafts by copying the content and publishing the changes immediately (assuming there are no errors during copying). To prevent misuse of this I've decided to make the plugin an admin plugin and not put it in the CMS editor interface.

All in all, I think this plugin is very useful for managing complex content strategies with ease.

This plugin can be installed using NuGet from the Episerver feed by searching for Zone.Epi.ContentCopy.

As usual the code for this plugin can also be found on GitHub if you want to change any of the standard features or build it out more. Thanks to Raffaele Millo for helping determine exactly how it should work.

Jul 01, 2019

Comments

KennyG
KennyG Jul 1, 2019 09:26 PM

Very cool!

Per Nergård (MVP)
Per Nergård (MVP) Jul 22, 2019 02:02 PM

Nice! One thing less on my ToDo list :)

Jacob Pretorius
Jacob Pretorius Aug 14, 2019 08:06 AM

Haha good to hear that Per :)

Please login to comment.
Latest blogs
Optimizely Frontend Hosting Beta – Early Thoughts and Key Questions

Optimizely has opened the waitlist for its new Frontend Hosting capability. I’m part of the beta programme, but my invite isn’t due until May, whil...

Minesh Shah (Netcel) | Apr 23, 2025

Developer Meetup - London, 21st May 2025

The London Dev Meetup has been rescheduled for Wednesday, 21st May and will be Candyspace 's first Optimizely Developer Meetup, and the first one...

Gavin_M | Apr 22, 2025

Frontend hosting for PaaS & SaaS CMS

Just announced on the DXP, we FINALLY have a front end hosting solution coming as part of the DXP for modern decoupled solutions in both the PaaS a...

Scott Reed | Apr 22, 2025

Routing to a page in SaaS CMS

More early findings from using a SaaS CMS instance; setting up Graph queries that works for both visitor pageviews and editor previews.

Johan Kronberg | Apr 14, 2025 |