0

I am trying to use the gallery out of the box SXA component but want to change its structure by using the rendering variant, but when I added the new variant it did not work. The video and field data I am adding are not rendering on the page.

Is there any way to create or update the existing default rendering variant for the gallery component?

enter image description here

1
  • Can you post your code and screenshots of what you've changed in Sitecore?
    – Marek Musielak
    Commented May 30 at 9:04

3 Answers 3

2

If you're looking to modify the default rendering variant for the Gallery component directly, you can find it at the following location in the Sitecore content tree:

/sitecore/system/Settings/Foundation/Experience Accelerator/Rendering Variants/Rendering Variants/Gallery

You can navigate to this location and edit the default rendering variant directly. However, it's generally recommended to create custom variants instead of modifying default ones to maintain separation and avoid unintentional changes to default SXA functionality.

1

Yes you can change default rendering variant to your custom rendering variant . You need to create your custom rendering variant under rendering variant folder ==> gallery folder . You need to change rendering variant in presentation detail

enter image description here

Your custom rendering variant is visible in this dropdown , select it and save and publish . it will be change structure .

Make sure you clear cache .

Hope this helps !

4
  • After creating rendering variant fields are not getting rendered on page, but is visible in experience editor.
    – Gagan
    Commented May 30 at 10:31
  • Did you publish those fields data ? they are available on CD site ? Try publishing related item it will resolve or check in another browser or incognito tab Commented May 30 at 10:39
  • Everything i have published but field values are not rendered on the page.
    – Gagan
    Commented May 30 at 11:30
  • Did you cleared cache ? Commented May 30 at 12:54
0

Default rendering variant for the Gallery component is located on the below location:

/sitecore/system/Settings/Foundation/Experience Accelerator/Rendering Variants/Rendering Variants/Gallery

enter image description here

You can make edit on above variant to reflect your changes.

Hope this helps!!!

3
  • I have tried but passing new field data is not rendered on page.
    – Gagan
    Commented May 30 at 10:32
  • @Gagan Can you please shapshot the fields you added on the variant if possible.
    – ckhanna
    Commented May 30 at 11:07
  • I have shared the screenshot above what field data i want to render.
    – Gagan
    Commented May 30 at 11:29

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.