You are designing a component that will allow users to select a content item from a specific place within the content tree as the data source. How will you ensure the component is flexible and the user can select a content item upon use?
A.
Ensure the insert options for the component are enabled so the Author can change the content item for the component.
B.
Ensure the users can create a new component from Experience Editor and configure the Datasource Template field.
C.
Ensure the component supports a change to the data source and configure the Datasource Location field.
D.
Ensure you add a placeholder within the component so the Experience Editor prompts the user for a content item.
A data source is a content item that provides the data for a rendering. By default, a rendering uses the current page item as its data source, but it can be changed to use a different item. This allows the user to select a content item from a specific place within the content tree as the data source for the component. To ensure the component is flexible and the user can select a content item upon use, the component must support a change to the data source and the Datasource Location field must be configured. The Datasource Location field specifies where the user is allowed to look for the data source. It can be a reference to an item or a query that returns a list of items. The user can then select an existing item or create a new one from the Associated Content dialog in theExperience Editor or the Content Editor. This way, the user can reuse the same component with different data sources on different pages. References:
Data sources
Change the data source of a rendering
Datasource Location
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit