Registering a Commerce Composer layout template
Use the Data Load utility to register your custom layout template within the Commerce
Composer framework and have your store subscribe to the layout template. A store must subscribe to
the template before users can select the template to begin composing a page layout for that
store.
About this task
- Since the container for a layout template is an empty widget, the Data Load utility loads the information to register your template into the PLWIDGETDEF and PLWIDGETDEFDESC database tables.
- Information to subscribe a store to the template into the PLSTOREWIDGET database table.
- Information to define the wireframe that displays in the Commerce Composer tool for the template
and any slot restrictions into the PLWIDGETSLOT database
table.Note: The wireframe displays only within the Commerce Composer tool as a visual representation of how a layout template displays when all of template slots are populated. This wireframe is not connected to the actual arrangement of the widgets on a store page. Depending on how a business user constructs a layout, the actual display of the layout can differ significantly from the visual representation of the template that a wireframe provides. The wireframe is used only within the Commerce Composer tool to help business users select the appropriate template to construct a layout and to select slots for including widgets within a layout.
- Information to define the template into the PAGELAYOUT database table.
Procedure
-
Create the CSV files and Data Load utility configuration files for loading your layout template
information. To help you create these files, HCL Commerce provides sample files for
loading layout template information. Use these sample files to model your CSV and configuration
files.
Update the CSV input files to include your layout template information
-
Prepare the data load input file that contains the identifier, descriptive, and definition
information for registering your layout template container.
-
Prepare the data load input file for subscribing a store to your layout template
container.
-
Prepare the data load input file that defines the template information. This information
includes the layout template name and description, both of which displays for the template in the
Commerce Composer tool.
-
Prepare the data load input file for loading the slot definition information
Configure and run the Data Load utility
-
Configure the environment settings for running the Data Load utility.
- Optional:
Configure the load order for when you run the Data Load utility. This configuration identifies
the sequence that the Data Load utility loads your CSV input files. If you included your new
directory for layout template information within the
WCDE_installdir\components\foundation\samples\DataLoad\CommerceComposer
directory, and did not move the business object configuration files, or rename the CSV input files,
you do not need to update this file.
- Open the wc-dataload-template.xml file for editing.
-
Update the values for each
businessObjectConfigFile
andlocation
attribute to reference the correct location and names for your files. - Save and close the file.
For more information about working with this file, see Configuring the data load order. - Optional:
Configure the business object configuration files for loading your layout template
information.
By default, you do not need to update these files to load your layout template information. For more information if you do want to update these files, see Configuring the business object configuration file. The following files are the business object configuration files that are used to load layout template information:
- wc-loader-registerWidgetdef.xml
- wc-loader-subscribeWidgetdef.xml
- wc-loader-template.xml
- wc-loader-widgetslot.xml
-
Run the Data Load
utility.
For more information about using Data Load utility to load layout template information, see Sample: Loading Commerce Composer layout templates.