Search code examples
exportsap-commerce-cloudimpex

Hybris - exporting a content page via in ImpEx script


Does anybody know if it is possible to export hybris content pages (created in CMS cockpit) using an ImpEx script? I've found some documentation (although not official) online here that describes creating a new page using something like the following:

INSERT_UPDATE 
ContentPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$cont
entCV);label;defaultPage[default='true'];approvalStatus(code)[default='approved'];
homepage[default='false'];previewImage(code, 
$contentCV)[default='ContentPageModel__function_preview']
;;about;About Us;ContentPage2Template;/about

I was wondering if there is a way to export a page using something similar? I'm very new to hybris so any help or guidance would be greatly appreciated. Thanks in advance.


Solution

  • Could you be more specific as to what are you trying to achieve. As far as your question goes

    if it is possible to export hybris content pages (created in CMS cockpit) using an ImpEx script?

    answer is yes it is possible.Impex script that you have written is also alright. So in hybris your content pages (created from cms cockpit) are of type "ContentPage". And this type contains some optional and mandatory attributes like uid,template etc. that define the look and content of the page. Impex are a way to import(export script are there also) data into the type in this case "ContentPage".

    For more you can ckeckout HybrisHub