I'll try my best to describe this problem as it is quite tedious.
We have a sharepoint solution, in where we create Columns that are deployed through a feature. I added my custom columns to a custom Content Type. I then created my custom content type and declared all the field refs pointing to my fields inside my Columns.
I then used a already created Page Layout(not sure that the proper name in English) and included my Content Type inside its Element.xml
<File Path="PageLayouts\MJQ.Nouvelles.aspx" Type="GhostableInLibrary" Url="Layouts/News.aspx" > <Property Name="Title" Value="News Page layout" /> <Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" /> <Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/CustomPageLayout.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/CustomPageLayout.png" /> <Property Name="PublishingAssociatedContentType" Value=";#News;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900242457EFB8B24247815D688C526CD44D00e1e2e3c8d71f4691bde302155bcf8a3200989a54f7a68341688674117f80da45f1;#"/> </File>
The GUID properly reflects the GUID of my ContentType.
The problem here is when i create a Publishing page with Page Layout as my Content Type, i cannot see the Content Type's field inside my Application page "News.aspx".
this is added inside the News.aspx
<wss:RichHtmlField ID="txtTitre" runat="server" FieldName="MyCustomField" />
When i look inside the sharepoint site, into site columns i can see them, my content type also shows in the site content type.
When i also go to my page's library setting i can see the content type but the fields are missing.