Hi, this seems simple and I would have thought a common requirement
but I can't get it or find the soultion:
I have a ContentType, say ListofCarBrands (which is a Container)
and contains a list of ContentType CarBrand (which is a Container and Containable)
and contains a list of ContentType CarModel (which is a Container and Containable)
.... and so on, so just your basic taxonomical tree structure.
How can I render this is the front end so that I can get the whole tree on one page?
So far I can find where Parts.Common.Body.Summary.cshtml render a detail-summary
(Model.Html) but I cannot access any of the Models collections.
I'm thinking now the Model object I'm getting here is not, say, a CarBrand
instance but some kind of ViewModel created upstream and not including collections.
(In MVC this was easy to do. The view would know what the model being passed in was
(i.e. not dynamic) and I'd just write nested foreach loops)
In addition messing with Parts.Common.Body.Summary.cshtml feels wrong as its not granular enough, it would affect all tree-like ContentTypes.