Which of the following steps is required?

A developer needs to configure a rendering in order to use dynamic placeholders.

Which of the following steps is required? Select all that apply.
A . Include the IDynamicPlaceholder base template in the Rendering Parameters template.
B . Link the placeholder settings item to the rendering item.
C . Define the placeholder key using a question mark (?) in the placeholder settings item.
D . In the component TSX file, set a unique placeholder key value that has not yet been defined.

Answer: A, B, C

Explanation:

To configure a rendering for the use of dynamic placeholders in Sitecore XM Cloud, the following steps are required:

Include the IDynamicPlaceholder base template in the Rendering Parameters template to enable dynamic assignment of IDs to the placeholder key.

Link the placeholder settings item to the rendering item to ensure that the dynamic placeholders are correctly associated with the rendering.

Define the placeholder key using a wildcard in the placeholder settings item, which allows for the generation of unique placeholder keys for every component on the page.

Reference: The Sitecore XM Cloud documentation provides a walkthrough on configuring components to use dynamic placeholders, detailing the steps required to set up dynamic placeholders1. This includes adding the IsRenderingsWithDynamicPlaceholders property to the component item, including the IDynamicPlaceholder base template in the Rendering Parameters template, defining the placeholder key using a wildcard, and linking the placeholder settings item to the component1.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments