How Do You Create a New Content Page With an ImpEx File?
September 24, 2017
ImpEx files may create new content pages in Hybris Commerce. In this tutorial, we will create the ImpEx for creating a new “Contact Us” page.
Here’s the ImpEx for creating a new “Contact Us” Page:
$contentCatalog=yourContentCatalog
$contentCV=catalogVersion(CatalogVersion.catalog (Catalog.id[default=$contentCatalog]), CatalogVersion.version[default=Staged]) [default=$contentCatalog:Staged]
INSERT_UPDATE ContentPage;$contentCV[unique=true];uid[unique=true]; name;masterTemplate(uid,$contentCV);label; defaultPage[default=’true’]; approvalStatus(code)[default=’approved’]; homepage[default=’false’];previewImage(code, $contentCV)[default=’ContentPageModel__function_preview’];; contact;Contact Us;ContentPage2Template;/contact
ImpEx Review:
This concludes the tutorial for creating a content page with an ImpEx file.
Marc is the Founder of HybrisArchitect.com.
He enjoys helping others learn more about SAP Commerce Cloud (Hybris). Marc is a SAP Commerce Certified Professional and has held the role of SAP Commerce Cloud Architect at Deloitte, PwC, Brillio (a Bain Company), and Nasty Gal. Marc holds an M.S. Software Engineering from Carnegie Mellon University and a B.S. in Accountancy from California State University, Fresno. He can be reached at: mraygoza@localhost