0

As we all know with SXA version 1.8 it is possible to insert components inside a rendering variant definition.

Go to 6. - Components: https://doc.sitecore.com/developers/sxa/18/sitecore-experience-accelerator/en/create-a-rendering-variant.html

In my particular example I want to add the breadcrumb component to a search results rendering variant, but following official documentation steps it doesnt work. This is the section when I'm adding the breadcrumb component:

enter image description here

And this is on the actual page when loading it, is stuck:

enter image description here

I've also tried to define a new placeholder setting under /sitecore/content/Tenant/Site1/Presentation/Placeholder Settings and then using this placeholder key on breadcrumb component under the rendering variant. This doesnt work as well...

Is someone having experience with something like this and whiling to help?

Thank you

  • What do you mean by "it doesn't work"? Can you add some screenshots and more clarification to your question? – Peter Procházka Jan 15 at 16:40
  • @PeterProcházka I've added some extra screenshots. I'm not getting any errors in the log file but I'm geeting a bad request when checking the network: site1.local//sxa/search/results/?l=en&itemid={CA234663-5BE2-4865-B8E2-29E336349231}&sig=&autoFireSearch=true&v={9D03DBDF-597E-4456-BF8F-88BDD2BE7A3D}&p=10&o=Title,Ascending&site=Testing-1. when I request this url in a separate tab it says: Value cannot be null. Parameter name: database – Emanuel Popescu Jan 15 at 16:51
  • 1
    @EmanuelPopescu I've reproduced this error (and the full stack trace is available in the log.. ) and I think the RenderComponentField pipeline processor doesn't work for the search results variant since search results are requested in an api call, which would be running in a different context. I suspect this isn't working for any variants that are being requested through an api call. Maybe worth a shot raising this with Sitecore Support – Elena Zlateva Jan 17 at 16:17
  • 1
    @Jen it didnt worked ootb. I've created a an NVelocity method to get the breadcrumb and called that method form the Rendering Variant Template item. Unfortunately as Elena said in the previous comment it's not possible for now. – Emanuel Popescu May 9 at 12:21
  • 1
    Thanks for responding, I have logged something with support as it would be so handy if this just worked! – Jen May 10 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.