Add the Manage items section to Pages for a custom SXA component
Use the Content Editor for the steps described in this topic.
To enable content authors to add or remove items from a custom SXA component in XM Cloud Pages, you make the Manage items section available in the right-hand side panel. This involves doing the following:
-
Add the _HorizonDatasourceGrouping template and the _PublishingGroupingTemplate template to the data source template of the custom component.
-
To enable users to add items, create at least one insert option for the data source.
To add the Manage items section to Pages for your custom component:
-
In the content tree, navigate to sitecore/Templates/Feature and locate the data source template of your custom component.
-
In the content area, click the Content tab.
-
In the Base template field, navigate to Templates/Foundation/Experience Accelerator and expand the Horizon folder.
-
Double-click the _HorizonDatasourceGrouping template to add it to the data source template.
-
Expand the Templates/Foundation/Experience Accelerator/Publishing folder.
-
Double-click the _PublishingGroupingTemplate template to add it to the data source template.
-
In the data source template, create a Standard values item, unless it already exists.
-
In the content area, scroll down to the Insert options field and click Edit.
NoteIf the Insert options field is not visible, on the ribbon, on the View tab, select the Standard fields check box.
-
In the Select Items window, for each type of item that you want users to be able to add in Pages, add the required template.
-
Save your changes. Now you can open a page that uses the custom component in Pages and verify that the Manage items section has been added on the right-hand side panel.