Merchello Fasttrack - Extended Product Information
I am trying to get Extended Product Information with in my own Product Content Type, however I am having trouble accessing information from a multi-node treepicker when I look in the database its stored in the umb://document//{{GUID}} format, using a similar method to the _ProductBoxList and _ProductBox shared views when I pass Model.GetPropertyValue<IEnumerable<IProductContent>>("actors") into the Model.Partial I get the following error:
The model item passed into the dictionary is of type 'Merchello.Web.Models.VirtualContent.ProductContent', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable1[Merchello.Web.Models.VirtualContent.IProductContent]'.]`
Any pointers would be appreciated, newbie with umbraco and Merchello
I managed to solve my own Question by passing Model.GetPropertyValue<IEnumerable<IPublishedContent>>("actors") instead of Model.GetPropertyValue<IEnumerable<IProductContent>>("actors")
Merchello Fasttrack - Extended Product Information
I am trying to get Extended Product Information with in my own Product Content Type, however I am having trouble accessing information from a multi-node treepicker when I look in the database its stored in the umb://document//{{GUID}} format, using a similar method to the _ProductBoxList and _ProductBox shared views when I pass
Model.GetPropertyValue<IEnumerable<IProductContent>>("actors")
into the Model.Partial I get the following error: The model item passed into the dictionary is of type'Merchello.Web.Models.VirtualContent.ProductContent', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable
1[Merchello.Web.Models.VirtualContent.IProductContent]'.]`Any pointers would be appreciated, newbie with umbraco and Merchello
I managed to solve my own Question by passing
Model.GetPropertyValue<IEnumerable<IPublishedContent>>("actors")
instead ofModel.GetPropertyValue<IEnumerable<IProductContent>>("actors")
is working on a reply...