Scenario: We have a List of Links Schema where Link is an Embedded Schema which is Multivalued, when we add the internal Comp i.e. List of links where we are adding this into Internal Link similarly how to add comp. --> fetching of the values of the multivalued List of Links has become a big Question while implementing the logic.
Sample Component:
In order to achieve the same here is a small trick needs to add in the model. Add a new Semantic Entry which can be used to get the values of internal List of Links values inside the parent Model i.e. in LinkModel.cs
When rendering the values in view please use the below code to fetch the values of the internal comp – which is of ListofLinks comp. i.e. one comp nested inside the other comp
By this way we get the Nested values of listofLinks comp values as well…Hope it might be useful while implementing such scenario's…