Enable a custom field in the SitecoreAI Page builder
Enabling a custom field in the SitecoreAI Page builder involves adding the field to a data template in the Content Editor.
Depending the type of the Marketplace app, data templates in the Content Editor are typically handled by different roles:
-
Custom apps - the app developer.
-
Public apps - the organization's information architect.
To enable a custom field:
-
In the SitecoreAI Page builder, depending on what you're extending:
-
If extending a content item - click the parent element of the content item, then, in the right-hand panel, click Content. In the Content item section, click More actions
> Open in Content Editor. -
If extending a page - in the left-hand panel, locate the page on the Pages tab, then click More actions
> Page content > Open in Content Editor.
-
-
In the Content Editor, in Quick Info, click the Template path.
-
In the Template Manager modal, in the Builder section, in Add a new field, enter the name of your custom field, such as Icon library.
-
In the Types column, select Marketplace Types > Plugin.
-
In the Source column, enter the Marketplace app ID of your custom or public app, then click Save.
-
Reload the SitecoreAI Page builder. The custom field now appears depending on what you're extending:
-
If extending a content item - the custom field appears in the right-hand panel, on the Content tab, at the bottom of the panel.
-
If extending a page - the custom field appears at the bottom of the Page content panel.
-
After enabling a custom field, you use the Marketplace SDK to get and set custom field values.