Export the site structure
The xmc-structure.json file defines the structure of your target SitecoreAI environment. You generate this file using the CMSExportStructure-x.x.x.zip package and then upload it to the SitecoreAI Pathway app.
You can download this package from the 2 Configure SitecoreAI instance page by clicking
Read instructions in the Upload target SitecoreAI structure section.
To export the site structure:
-
From the source environment, download the following:
- Component templates
- Page templates
- Rendering items
- Site presentation folder
-
Extract all the
.zipfiles, including thepackage.zipfiles inside the downloaded packages. -
In the
CMSExportstructure folder, create the following subfolders with this exact naming:Components- for the component data source templates.Pages- for the page templates.Renderings- for the rendering items.Presentation- for the presentation folder.
-
Copy the downloaded packages into the target destination as follows:
Package/Folder Destination folder Component Data Source template item Components Page Templates PagesFollow a flat hierarchy of page templates. No folder structures permitted. All page templates must be in the root of the Pages folder. This means that the xmc-structure.json file must be organized as follows templates belong in the "Pages" section.Rendering components associated with a datasource template belong in the "Renderings" section.Page designs mapped to specific pages belong in "PageDesignMappings" section, andThe complete list of page designs, including their partial designs, belongs in the "PageDesigns" section.Templates that are in nested folders in the source need to be added separately. Presentation Presentation Project folder from the Rendering item download. If you have additional rendering item locations, for example the Feature or Foundation folders, these need to be copied into the Renderings folder as well. Renderings -
In the terminal, navigate to the
Export-Structure.ps1file and run the export structure script with Admin permissions. -
Verify that the
xmc-structure.jsonfile was created and is not empty and, if correct, upload it to the SitecoreAI Pathways app.