How to clone content catalog into another catalog in SAP Hybris

We often find ourselves in a situation where we need to set up a new website but don’t want to start from scratch by creating all the pages, slots, components and media files again. In such cases, we can reuse an existing site by cloning it for the new site. This helps save time for both the IT and business teams. The content team can easily rewrite or replace the required content as needed.

for this example, we wanted to clone UKContentCatalog to USAContentCatalog. We can use the below Impex and start the sync job. all pages, cms, slots, components and media will be cloned once the job is completed.



$contentCatalog=USAContentCatalog
$sourceContentCatalog=UKContentCatalog

$defaultCurrency=USD
$languages=en
$defaultLanguage=en

$stagedContent=catalogVersion(catalog(id[default=$contentCatalog]),version[default='Staged'])[unique=true,default='$contentCatalog:Staged']
$onlineContent=catalogVersion(catalog(id[default=$contentCatalog]),version[default='Online'])[unique=true,default='$contentCatalog:Online']

$sourceContentCV=sourceVersion(catalog(id[default=$contentCatalog]),version[default='Staged'])[unique=true,default='$sourceContentCatalog:Staged']
$targetContentCV=targetVersion(catalog(id[default=$contentCatalog]),version[default='Online'])[unique=true,default='$contentCatalog:Staged']

INSERT_UPDATE Catalog;id[unique=true];name[lang=en];defaultCatalog
;$contentCatalog;Freya USA Content Catalog;true

# Catalog versions for content catalogs
INSERT_UPDATE CatalogVersion;catalog(id)[unique=true];version[unique=true];active;defaultCurrency(isocode);languages(isoCode)
;$contentCatalog;Staged;false;$defaultCurrency;$languages
;$contentCatalog;Online;true;$defaultCurrency;$languages

#script to create cron job
INSERT_UPDATE CatalogVersionSyncJob;code[unique=true];$sourceContentCV;$targetContentCV;rootTypes(code)[mode = append];
#;sync USAContentCatalog:Staged->Online;;;CMSItem, CMSRelation ;

10 thoughts on “How to clone content catalog into another catalog in SAP Hybris”

  1. Периодический технический осмотр считается важной процедурой для поддержания безопасности автомобиля.
    Во время диагностики выявляются потенциальные поломки, что могут привести серьёзных поломок на трассе.
    Регулярное посещение ТО помогает избежать больших вложений на дорогостоящий ремонт в будущем.
    Также технически годный транспорт гарантирует спокойствие водителя и пассажиров на движении.
    Техосмотр грузовых автомобилей

  2. [862]bajj99 Official Login | সেরা অনলাইন ক্যাসিনো ও স্লট গেমস,bajj99-এ আজই জয়েন করুন। এখানে পাবেন সেরা অনলাইন ক্যাসিনো গেমস এবং বিকাশ দিয়ে টাকা জমা দেওয়ার সহজ সুবিধা। অ্যাপটি ডাউনলোড করে গেম খেলা শুরু করুন। visit: bajj99

  3. [3688]ceri388 | Login Resmi & Link Alternatif Slot Gacor Hari Ini,ceri388 menyediakan akses daftar casino online terpercaya dengan proses deposit via dana yang cepat dan mudah. Segera bergabung dan temukan pengalaman bermain terbaik. visit: ceri388

Leave a Comment

Your email address will not be published. Required fields are marked *