Alternates sharing model data

Topics: Customizing Orchard
May 5, 2013 at 8:31 PM
Hello, I've integrated 2 alternates that are used in my search results on my customContentType. Problem I'm having is that if I get a count of 1, I want my customContentType's fields to behave one way and count > 1 to behave another.
So I can get the count in my contentType alternate, but I can't access or change the fields from there, so I created the 2nd alternate on one of the fields, and I can't get the count from there but I can affect it's display.
Am I going about this the right way by trying to access other shape's models data through the alternates? Or is there a better way?
May 6, 2013 at 4:59 AM
Hey all,

managed to figure out that I was needing to go to the list that displayed my content. I created an alternate to that list, then displayed my content and it's items like so....

Model.Items[index].ContentItem.Parts[5].Summary.Value

The interesting part was that even though the list only displayed up to n'th node, since you can trace into that node, you can go deeper.

:)

Working good!