cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Export of pages created in SmartEdit to impex file

crescenzorega
Active Participant
0 Likes
1,574

Hi,

i wanted to ask if there was a way to export static pages but containing various components (paragraphs, banners, links, images, etc.) created in SmarEdit to be able to reload them in other environments.

For example, the customer creates all the pages on STG and then we export them to PROD.

Regards,

Crescenzo

Accepted Solutions (0)

Answers (1)

Answers (1)

geffchang
Active Contributor
0 Likes

You could use Backoffice's "System > Tools > Script Generator" to generate an export script for all Types. After you generate the script, select whatever Types you need (related to CMS, including dependencies) and export the data using Backoffice or HAC. You may need to adjust the columns/attributes that you need to export, and this will require some trial-and-error.

crescenzorega
Active Participant
0 Likes

Hi geff.h.n.chang,

unfortunately it is a way that i am trying with poor results because the generated scripts do not contain all the information necessary for the reconstruction of the pages.

To follow this path i should, as i am already doing, modify the generated scripts by adding the missing attributes, this path is long and complicated so i was wondering if after so many years SAP had thought of an easier way to export pages and contents created by SmarEdit given that these types of scenarios exist on all SAP Commerce projects.

Regards,

Crescenzo

geffchang
Active Contributor
0 Likes

crescenzorega Yeah, finding the correct Types and attributes is challenge. But, it's possible, because all CMS data can be imported as impex.

Some projects start preparing the CMS data using impex. So, it's a bit easier for them to reuse those scripts later.

In any case, I wish you luck. 🙂

crescenzorega
Active Participant
0 Likes

The argument is that in our project there will be more than 30 pages, which will contain a bit of everything images, tests, links and in some cases entire pages written in html, which the customer wants to create in a staging environment and which will then have to be migrated to production.

Can't you ask the customer to prepare this content page directly in production?

From what you are telling me, I think it will take a lot of work to create all the export scripts in order to generate the impexes that will be loaded into production.

geffchang
Active Contributor
0 Likes

crescenzorega You can create the CMS in staging environment using SmartEdit. (You can also prepare it via impex).

In any case, you just need to prepare the impex script to export those pages / types. The apparelstore extension should give you an idea of some of the common types that are used: /apparelstore/resources/apparelstore/import/coredata/contentCatalogs/apparel-ukContentCatalog/cms-responsive-content.impex

If you extended the types (e.g. added new attributes), then you need to adjust the headers of the script.

To export media related to content catalog, I think you can simply add a filter in the export script, so that it exports the Staged content catalog (i.e. Do not include the product catalogs, or the Online content catalog).

But yeah, preparing this will take some time and trial-and-error.