Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Johan Björnfot
Sep 17, 2012
  5105
(3 votes)

EPiServer 7 Staging (Export/Import)

A small change that has been done that is useful if you use Export/Import for staging purposes is that we have made it possible to run import/export with kept identities (like when you run mirroring). You control this by a simple checkbox on import page in admin mode as shown below:

Import

When the checkbox is selected then the import will keep the same guid based identities for items (e.g. pages, blocks and files) that they had on the exporting site. During import a check whether an item already exist is performed and in case that is true that item is updated (given that the imported item had a changed date that is later than existing item). In previous versions of CMS during Import all items got new guid based identities which caused that for each item in the package a new item was created on the importing site.

As an example say that you have an import package with one page. If you import that package several times in previous CMS versions (or having the checkbox unselected in CMS7) then you get a new page for each import. Now if you run several imports with the checkbox selected then you will still only have one page.

Sep 17, 2012

Comments

Sep 17, 2012 09:37 AM

Nice!

henriknystrom
henriknystrom Sep 17, 2012 11:54 AM

Excellent stuff! Who came up with this brilliant idea!? :)

Huilaaja
Huilaaja Sep 19, 2012 07:43 AM

What if you import page which ID has already been used by another page?

Sep 19, 2012 08:29 AM

It is not the int based integer that is preserved, it is the guid based identifier.
That means that the int based identifier (that will be PageReference/ContentReference) will probably differ between exporting site and importing site.

Sep 20, 2012 11:04 PM

Like

Huilaaja
Huilaaja Sep 25, 2012 12:05 PM

Thanks Johan, it sounds great!

K Khan
K Khan Oct 10, 2013 04:04 PM

How can we export/Import for Global Block that have been used in some helper classes rather in Pages directly?

Sep 30, 2014 11:26 AM

Good to know the breaking change in EPi 7.

Thanks Johan.

Please login to comment.
Latest blogs
Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog