0

In Sitecore SXA, I've created a clone of a rendering called "Page Content". But when I add this on a page, it doesn't render the data.

When I checked its presentation details I found that the Variant dropdown was blank.

enter image description here

I also checked in the rendering parameter template and bind it with the necessary base templates.

enter image description here

Still, it is not filled. Please suggest if anything I need to configure.

2
  • Does your clone have any variants defined for that site?
    – Gatogordo
    Oct 22, 2021 at 13:09
  • Have you checked "Rendering Variants" folder is showing under Presentation in your website?
    – Ashish
    Mar 23, 2022 at 11:35

1 Answer 1

0

You are missing variants definitions for your rendering.

To fix it you have to create Rendering Variants folder under your site

Sites➡>Presentation➡Rendering Variants

Use your custom rendering name as its name just like other RV enabled renderings do and you should see them in rendering parameters dialog.

If it will be something different you can debug it by inspecting following pipeline: getVariants.

If you intent is to store variants in your current site then head to: Sitecore.XA.Foundation.Variants.Abstractions.Pipelines.GetVariants.GetSiteVariants

p.s

Did you use Clone-Rendering functionality?

It should automatically create these items for you and even copy variants from source rendering if available globally.

Your Answer

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

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