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.

1
  • Does your clone have any variants defined for that site?
    – Gatogordo
    Oct 22 at 13:09
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, privacy policy and cookie policy

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