2

I created a custom template to use with the SXA carousel component. On the standard values > presentation > details, I selected the Page Content control and I want to use a custom variant (which is already created, published) with it but only the default options appear in the dropdown. Does anyone know how to add a custom variant?

enter image description here

1 Answer 1

1

There are couple of ways how you can use your own Rendering Variant with Page Content rendering:

  1. Put it under Page Content node and as variants for certain renderings are matched by rendering name. So rendering placed under Page Content will be assigned to Page Content rendering. Like this:

enter image description here

  1. Put your rendering variant wherever you want in .../Tenant/Site/Presentation/Rendering Variants node and link certain variant to certain rendering. For example, here I'm assigning Default Title rendering variant to be used with Page Content:

enter image description here

  1. Assign the whole set of variants from one rendering to another. Bellow, I'm assigning all Promo renderings variants to Page Content:

enter image description here

2
  • number 1 is the approach I took before I posted the question and the variant still doesn't appear in the dropdown.
    – andrei
    Commented Jul 20, 2017 at 21:13
  • I've rechecked this today and it's working fine. Commented Jul 21, 2017 at 11:20

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.