This project is read-only.

Placement info not taking effect for ContentPicker

Topics: Writing modules
Nov 8, 2013 at 4:10 PM
This doesn't work in my module ("RelatedLinks" and "RelatedContentItems" are field names):

<Place Fields_MyCustomField_Edit-RelatedLinks="Content:7"/>
<Place Fields_ContentPicker_Edit-RelatedContentItems="Content:8"/>

Specifically, the RelatedLinks field appears AFTER the RelatedContentItems field.

But if I remove this line from Orchard.ContentPicker

<Place Fields_ContentPicker_Edit="Content:2.3"/>

then the first starts working in the expected order!

In order to get around this problem, I added a dependency on Orchard.ContentPicker to my module and the first then took effect.
I think this has to do with the way that placement files get loaded, with each one overriding the previous or some such.

Is this by design?

Surely the most specific placement should win, regardless of module dependencies?
Nov 11, 2013 at 7:35 AM
No, the placement added last (according to module dependencies) wins.