I am working with an umbraco document type which has a collection of IPublishedContent as a property. This manifests itself in the view as a string which is a CSV of the keys of the objects, which I then have to parse and look up the underlying values using the content helper.
by @foreach (var author in Umbraco.Content(story.GetPropertyValue<string>("author").Split(',')))
{
@author.Name
}
As an MVC developer, this feels very wrong. Is there a better way that I am missing? Ideally Umbraco should know that these are actually content items and map them, similar to a navigation property in an ORM.
Would be happy to go with a strongly typed approach, but I cant find much documentation other than to break everything into child actions.