What You are Going to Learn
In this quick tutorial, you will go through the steps to take the Text Teaser data template and make it available for use by authors in XM Cloud Components. You will learn:
- How to configure the settings on a Site definition to select FEaaS component data sources
- How to validate the data source is now available in the XM Cloud Components application
Overview
Previously, you learned how how to create a data model for the Text Teaser component. Now you will configure your Site definition to make that data sources available to XM Cloud Components
For this tutorial, you will:
- Configure the FEaaS component data sources settings on a Site to include the Text Teaser data source
- View the available data sources in XM Cloud Components to validate Text Teaser data source is available to authors
Prerequisites
In order to complete the following tutorial, you will need these resources:
- A valid organization login for the Sitecore Cloud portal
- An existing XM Cloud environment and site created in Tutorial: How to Set Up and Utilize XM Cloud
- The Text Teaser data source created in Tutorial: How to Create a Component Data Template in XM Cloud
Use a data source template in XM Cloud Components
Configure the Text Teaser template for Components
To start, you will take the data template that has been created and make it available in XM Cloud Components to be used as data source. This will be configured on the Settings item in the site.
-
In the Content Editor, select the Settings node on the Company Dev site:
/sitecore/content/Company Dev/Company Dev/Settings
-
In the Content pane on the right side, scroll down through the fields and find the field named FeaaS component data source templates. You will find this field near the bottom of the list of fields.
-
On the left side of the field selector, navigate the tree to find your template at:
Templates/Project/Company Dev/Basic Components/Text Teaser
-
Double-click on the Text Teaser template to add it to the list of Selected templates on the right side of the selector.
Any templates showing in the 'Selected' side of this field are now available as templates that can be used as data sources in the Component Builder.
-
Click the Save button in the ribbon to save the changes. Now the Text Teaser data template will be available to the Component builder.
Validate data source is available in Components
Before releasing this to the authoring team, you need to ensure that the Text Teaser template is available in the Components builder. In this series of steps you will launch the Components application and try to find the new Text Teaser data source.
-
Return to the XM Cloud Tools pane. If you've closed that tab, you can get there with these instructions:
- Login to the Sitecore Cloud Portal
- Select your App from the Apps list
- From the flyout panel, select Open app
- At the very top switch to Tools
-
In the Tools page, select the Components card to launch the Component builder.
-
At the top, switch to the Data sources section
-
Scroll down through the list of data sources and find the one named Text Teaser
Congratulations! You have now configured the Text Teaser data source to be available in XM Cloud Components! You will now be able to map the data source to your visual elements in the next tutorial.