This project is read-only.

generating display of content items

Topics: Customizing Orchard, Writing modules
Jun 1, 2013 at 9:43 AM
I am trying to add a little bit of functionality to the dashboard so that when a container based content item is edited it the dashboard, it shows a list of children in the edit view.

To do this, I figure the easiest (and most flexible) manner is just to add a part to the container-content-type and use a driver/view to list the children.

I can get a list of children (contained content items) via querying the CommonPart. What I can not figure out is how to make a small summary display.

I've spent the day already going through a lot of core code and trying various things, but I think I'm missing a few concepts to make it work. I imagine there may be an incredibly easy solution and if not, can someone point me in the correct direction.
Jun 1, 2013 at 10:01 AM
For each contained content item in the list, invoke IContentManager.BuildDisplay. Add the resulting shape to a List shape, and render that list shape.