6

I am currently working in Sitecore 9.1.1 with SXA 1.9. I am trying to build out a Rendering Variant that points to a datasource item with sub-items. These sub-items are child items to the datasource for the Rendering, and are gotten through a RenderingVariant/Query. Then rendered out with standard SXA Field Renders. Rendering each sub-item with a dynamic placeholder that should allow a Content Author to optionally add a component next to it.

The Placeholder Key points to a Presentation/Placeholder item. I have followed the Sitecore Documentation for building a dynamic placeholder in SXA found here: https://doc.sitecore.com/developers/sxa/19/sitecore-experience-accelerator/en/add-a-dynamic-placeholder-to-a-rendering-variant.html However, when the component gets rendered out the placeholders are not unique thus once I put a component into one place holder it gets applied to them all.

Rendering Variant Structure: Rendering Variant Structure

Placeholder Settings: Placeholder Settings

Rendering with Placeholders as built in EE: Rendering with Placeholders as built in EE

Rendering with Placeholders as built in EE

Any ideas or possible solutions would be greatly appreciated. Thank you in advance.

6
  • Have you tried using the wildcard * on the end of the placeholder key within your rendering variant? IE. Use "historymedia*" in the rendering variant deatails field? Feb 2, 2020 at 14:24
  • Thanks for the suggestion Dave. Yes, I have tried that as well, and it did not work either.
    – BlakeKnox
    Feb 3, 2020 at 13:38
  • 1
    Just an update on this question. I currently have a ticket open with Sitecore and will add any updates here when I get a response.
    – BlakeKnox
    Feb 6, 2020 at 13:37
  • Do you have any updates on this BlakeKnox? I'm currently facing the same issue... :(
    – monkey.dsc
    Apr 2, 2020 at 8:34
  • have you find any solution for the above issue ? Aug 20, 2020 at 6:20

1 Answer 1

2

You have to add the IsRenderingsWithDynamicPlaceholders: true in Controller or View Renderings.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.