Placement.info issue with contrib fields

Topics: Customizing Orchard, General, Troubleshooting, Writing themes
Dec 20, 2011 at 1:10 AM
Edited Dec 20, 2011 at 1:14 AM

Hello all.

I am trying to use my Placement.info file to control the order of fields on the detail view of a content type called "Course"

Fields that aren't of the Fields_Contrib_* type get placed properly. Contrib fields always end up at the top of my content. :(

Here is a part of my Placement.info file

<Placement>
    <Match ContentType="Course">
        <Place Parts_RoutableTitle="Content:1"/>
        <Place Fields_Common_Text-CourseNumber="Content:1.1"/>
        <Place Fields_Contrib_ChoiceList-Discipline="Content:1.2"/>
        ...A bunch of other place fields here
    </Match>
</Placement>

All of the Fields_Contrib_* fields end up at the top of my content before the title. :/ All other fields are in the correct spot. I turn on the developerr tools and I see that the Placement for the Contrib fields is still deriving from Placement.info found in the module folder, not the one from my theme.

This is a critical issue for a client so help is VERY much appreciated.

Thanks,
Will

 

Coordinator
Dec 20, 2011 at 1:16 AM

I think it's because the contrib field in question is not doing what it should from its driver to enable placement. Comparing the driver codes should confirm that.

Dec 20, 2011 at 2:02 AM

Recommendations? What am I looking for in the driver file?

Thanks,
Will

Coordinator
Dec 20, 2011 at 4:55 AM

GetDifferentiator.

Dec 20, 2011 at 3:39 PM

Didn't get a chance to reply last night.

Thanks Bertrand! That gave me enough to fix the issue.

=)