Creating Commerce Composer widget restriction groups
About this task
Widget restriction groups are used to restrict the slots in layout templates to include only widgets from defined widget groups. When a business user selects a template slot that is restricted to include only widgets in a widget restriction group, only the widgets within that group are available for the user to select in the Add Widgets to Slots window. If a widget is included within a widget restriction group, users can still include the widget in slots that are not restricted to that widget restriction group. For example, in a category page layout template you might want to restrict a slot in the left sidebar to include only the Category Navigation and the Facet Navigation widgets.
- AnyPage
- Set of widgets for use on any page.
- CategoryPage
- Set of widgets for use on category pages.
- CatalogEntryPage
- Set of widgets for use on catalog entry pages.
- SearchPage
- Set of widgets for use on a search results page.
- WidgetForTabTitle
- Set of widgets for use as a tab title in a layout template that includes tabbed slots. By default, the Text Editor widget is included in this group and is available for use as a tab title. By default, this group is the only widget group that any template slots include as specified widget restriction group.
The widget restriction groups that are allowed to be included within a slot are defined for the slot in the PROPERTIES column of the PLWIDGETSLOT database table. You can add a widget to a widget restriction group by updating the definition XML for the widget. For a widget to be included in a template slot that is restricted, the value of the widget restriction group property in the widget definition XML must match the value of the widget restriction group property for the template slot in the PLWIDGETSLOT table. Administrators can use the Data Load utility to update the definition XML to update the groups to which a widget belongs. Administrators can also use the Data Load utility to update the widget restriction groups for a template slot within the PLWIDGETSLOT table.
Note: If you need to copy a Commerce Composer widget restriction group from one
instance to another instance, you can use the Data Extract and Data Load utilities. Use the Data Extract utility to extract the layout template
data, which includes the widget restriction group data. Then, use the Data Load utility to load only the widget
registration and template wireframe slot definition data by specifying the
-DLoadOrder parameter when you run the utility. For more information, see Extracting Commerce Composer data with the Data Extract utility.



