I'm using Sitecore 9.1.1 with SXA 1.8.1
.
I have a search results component, I need to render a partial view inside a section in its rendering variant.
I tried to add a Variant component for a custom controller rendering that returns the view. However, it gives me the below error:
I also tried to add a Variant Template and used an NVelocity function
(as shown below) that returns an ActionResult.
However the ActionResult is rendered as an object, it's not rendered as HTML.
Is there any other way to render my partial view inside the search results rendering variant?