Manage dynamic content
Change the data mapped to an attribute
To change the data mapped to an attribute:
-
Add or select the element containing the variable previously mapped to a data source.
-
In the right-hand pane, in the Content section, the attributes that were previously configured to use dynamic content are indicated by a green badge to the right of the attribute name. Click the attribute you want to edit.
-
In the Path step, select another object in the tree. To change data source, click Source or Back to access the Source step and select another data source before clicking a new object.
Remove dynamic content from an attribute
To remove the link between a variable and dynamic data:
-
Add or select the element containing the variable previously mapped to a data source.
-
In the right-hand pane, in the Content section, the attributes that were previously configured to use dynamic content are indicated by a green badge to the right of the attribute name. Click the attribute you want to make static.
-
In the right-hand pane, click Static, and enter the text, upload the image, or add the link you want to use.
Define a fallback for missing mapped data
You can create a fallback strategy in case the data source mapped to an attribute is unavailable. This lets you apply alternative behavior for the attribute, such as hiding it or showing a static object.
To define a fallback:
-
In the Components builder, select the attribute you want to define a fallback for.
-
In the right-hand pane, in the Content section, click Fallback .
-
Depending on your fallback strategy, click one of the following:
-
Nothing - leaves the element visible with the missing attribute.
-
Hide - hides the entire element
-
Show fallback - display the chosen static text, image or link instead of the missing object.
-
-
If you choose to have a fallback, enter it in the appropriate field. For images, upload the image or enter its URL.
Update a data source
When a remote data source is updated, the version added to XM Cloud Components will not automatically fetch those updates. Any time you use data whose source has changed, you will be prompted to fetch the latest data.
To update a data source:
-
On the Data Sources tab, click the data source that needs to be updated.
-
In the JSON section, click Fetch.