0

I am creating a custom search result component, but at the end i m able to retrieve rendering varient fields name not the values .How to retrieve rendering varient field values which is linked to a datasource specified in search scope.

here is my View:

enter image description here

Model:

enter image description here

Controller:

enter image description here

Template.cs file:

enter image description here

Repository:

enter image description here

The result what i am getting:

enter image description here

In sitecore i have created a folder under data and added some data using the custom template and referred that data folder in search scope query and created rendering varients for the template fields.

can anyone please suggest what i need to do inorder to retrieve my varient fields data.

Thanks

1
  • Why are you customizing this code instead of adding those fields to the rendering variant? Feb 18 at 15:50

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.