Add a data source setting for an existing rendering

Current version: 1.8

Most SXA renderings are designed for reusability and pull data from data source items. This means that the content they display is not bound to the page on which they appear but is stored in data source items. Sometimes, you might want to add a field to the data source item of a rendering. For example, because you want to add a template field Image to the data source item of the Link rendering.

To add a data source setting to a rendering:

  1. First, create the new template. In the Content Editor, navigate to your tenant templates folder (sitecore/Templates/Project/) and insert the new template. This new data source item template must inherit from the existing SXA data source item template.

  2. In the Content Editor, navigate to sitecore/content/Tenant/Site/Settings/, right-click Datasource Configurations, click Insert, and click Datasource configuration.

  3. In the Create Datasource Settings dialog box, select the rendering that you want to create the data source setting for.

  4. In the Datasource configuration section, in the Datasource Template Item field, insert the new template.

  5. In the Datasource configuration section, in the Datasource Roots Locations field, specify the folder that contains the data sources.

    Note

    Consider creating a data source folder with your own insert options so that your editors can create them easily.

Create data source settings

Do you have some feedback for us?

If you have suggestions for improving this article,