1. Linking to the Model in Sitecore
It would be good to handle going from the Model property on the various renderings types to the Model content item which has the Model Type field. In the examples the type is in the Model field which is a link field. I did something like this to override the getModel pipeline:
Item obj = ObjectExtensions.ValueOrDefault<RenderingItem, Item>(rendering.RenderingItem, (Func<RenderingItem, Item>)(i => i.InnerItem));
if (obj == null)
return (object) null;
else
{
var modelItem = obj["Model"];
var model = ObjectExtensions.ValueOrDefault<Item, string>(
MvcSettings.GetRegisteredObject<ItemLocator>().GetItem(modelItem),
(Func<Item, string>)(i => i["Model Type"]));
2. Glass v2 mapped Multilist fields to IEnumerable<Guid>, while v3 attempts to map to IEnumerable<model>. We're using TDS to generate the model code at which time we can't figure out what the <model> should be for the Multilist field. Can a configuration property to drive which way it tries to map be implemented? Or if there is a way to figure out that model, can an example be provided?
Thanks,
Mike