template input file
Use the template input file to load layout templates into a store so that they can be used in the Commerce Composer tool. This input file loads an empty layout template.
For samples that demonstrate how to use this
input file in different load scenarios, see:
You can extract layout template data with the Data Extract utility to create a
template.csv file that you can load with the Data Load utility. For example, if you want to
copy or move templates between stores or instances, such as for creating one or more test
environments.
Note: You must apply the interim fixes for APAR JR53438.fep and
APAR JR53438.fp to add support to the Data Extract utility for extracting Commerce Composer data.
The sample configuration files that are provided for you to use with the Data Extract utility, extract template data from the
following database tables:For more information about extracting Commerce Composer data, see:
Definitions
- (Integer) The internal reference number for the template, for
example, 50001. The LayoutUniqueID is automatically
generated when you load the template. In Delete mode, either this
field or the LayoutName field (see next column) is required.Note: The sample CSV file does not include this column; the sample demonstrates the use of the LayoutName to uniquely identify the template.
Maps to: PAGELAYOUT.PAGELAYOUT_ID
- (String) The external reference name of the template, for example, Any
page, eight slots, tabs. This name is displayed in Commerce
Composer tool to help business users identify the template. You can
use any name. In Insert or Replace mode, this field cannot be null
and the name must be unique. In Delete mode, either this field or
the LayoutUniqueID field (see previous column) is required.
Maps to: PAGELAYOUT.NAME
- (String) The description of the template, for example, Eight-slot
template with left sidebar. Includes two optional tabs. The
description is displayed in Commerce Composer tool to help business
users understand the structure or purpose of the template.
Maps to: PAGELAYOUT.DESCRIPTION
- (String) The class of device that the template is designed for.
Valid values are:
- Web
- Designed for pages that are viewed on desktop, notebook, and tablet computers.
- Mobile
- Designed for pages that are viewed on mobile devices.
- Any
- Designed for pages that can be viewed on any device because the template is responsive.
Maps to: PAGELAYOUT.DEVICETYPE
- (Integer) The state of the template. Valid values are:
- 0
- Inactive; do not make this template available in the Commerce Composer tool.
- 1
- Active; make this template available in the Commerce Composer tool.
- 2
- Mark for delete. To clean up templates that are marked for deletion from the database, you must schedule the CleanPageLayoutsCmdImpl command. For more information, see Remove marked for delete Commerce Composer layouts.
Maps to: PAGELAYOUT.STATE
- (String) A flag indicating whether you are loading a template.
Set this value to TRUE.
Maps to: PAGELAYOUT.ISTEMPLATE
- (String) A flag indicating whether you are loading a default
layout. Set this value to FALSE.
Maps to: PAGELAYOUT.ISDEFAULT
- (String) A flag indicating whether to delete the row for this
template from the database. Specify 1 to delete the row. Tip: Instead of using this column to delete a template, consider scheduling the CleanPageLayoutsCmdImpl command. The command ensures that the referential integrity of the database is preserved. To mark the template for deletion by the CleanPageLayoutsCmdImpl command, set the State column in this input file to 2 (Mark for delete).