0

Can taglist component be used inside search result rendering variant?

I tried to use it with in search result rendering and it is just keep spinning and not showing any results. In the console, I am seeing "Value cannot be null. parameter name: database". I am using sitecore 9.1.1 with Sitecore SXA 1.8.1.

Thanks for in advance for any help.

1
  • Hi, did you find a way to do this? Commented Oct 10, 2019 at 14:08

1 Answer 1

1

Please take the bellow approach as this is working quite fine for me (I've just checked it). I have a couple of pages which I've tagged with three tags:

enter image description here

Modify your Search Results rendering variant and add Variant Reference item and use SxaTags field to pass through:

enter image description here

Under Variant Reference drop a variant field which will display Title of a tag item:

enter image description here

Here are the results:

enter image description here

2
  • Thank you so much @Dawid. I am aware of this approach, but I am looking to make the tag behave like taglist. If tag is clicked, I want to display results in assigned search result page. Thanks again :)
    – Discovery
    Commented May 9, 2019 at 13:01
  • That is easy to achieve! Just add Filter Checliks rendering to those I've on a page you will be able to filter results. Just remember to create a facet and point it to sxatags field. Commented May 9, 2019 at 18:38

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.