Fields of Part render on ContentType

Topics: Customizing Orchard, General, Troubleshooting, Writing modules
Apr 4, 2011 at 1:25 PM


I have attached a field to a part and it renders/placement is assigned within the contenttype, not within the part itself.

i.e. If i have a contenttype and attach a field, i can assign placement to the field within the contenttype shifting the field above or below other parts as required (correct!)


If I attach the field a part I would expect the field placement to be relative to the part, NOT the contenttype to which the part is attached.

Anyone else experienced this?

I want to wrap a border/div around the part and attached fields but this is not possible.


Apr 4, 2011 at 3:10 PM

It sounds intended, very often you'll want to move fields to somewhere other than inside the part.

You can probably use an IShapeTableProvider to do this kind of manipulation. Have a look at Orchard.Core.Shapes.CoreShapes for example usage. You can even add wrappers there to perform your border/div wrapping.

Apr 4, 2011 at 7:08 PM

Yes, that's definitely by design.