1

I am following this https://doc.sitecore.com/developers/100/developer-tools/en/model-binding.html to bind my custom model for complex json response from my LayoutService API.

The properties and fields from the Route node are perfectly being populated in the model ComplexComponent but anything that is under "placeholders" node is not being populated and I am getting all properties as null.

Any clue, what could be wrong here?

1 Answer 1

1

If you are talking about the OOTB code, you can see index.cshtml. Here the name of the placeholder is jss-main.

enter image description here

You should be adding the placeholder Settings with the same name on the Sitecore page presentation. It will work.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.