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

Also when i use "Add from existing site columns" inside the site's library it puts the right field inside the column section in doubles and it then shows on my page correctly.
–
Dr.Denis McCracleJizzFeb 29 '12 at 17:51

3 Answers
3

One of the more annoying aspects of custom content types is that if you change a content type once it has been deployed, the redeploy of the updated solution containing the content type will not push those changes out to existing lists that use that content type. The changes will be correctly reflected in Site Content Types but not anywhere where that type is in use.

One way to get them to appear is to manually add the Site Columns that make up the Content Type to the existing list. When you do this, it will correctly realize that the Site Column being added is part of the content type and associate it properly.

The reason for this is that you are only changing the schema, not the instance. Use featureupgradeactions to add fields to content types. What Dave suggests is actually unsupported, NEVER change a schema only and then modify your site to match it.
–
ColinFeb 29 '12 at 19:08

1

@Colin Agreed. I was merely offering it as a way to solve his immediate problem. A properly configured feature upgrade is the best long-term option.
–
Dave WiseFeb 29 '12 at 19:37

Ok like the above comments say. I found the actual way to fix it. Simply delete all page of the said content type, go to the page list of the publishing site, delete the columns of the content type, delete the content type, next time you publish it will redeploy the content type with updated fields.

I did something similar where I added the content type to another temporary site 'Pages' library, used the 'Manage Content and Structure' page to move the pages from the old site to the temporary site, deleted the Content type from the old site, re-added the content type, then moved the pages back using 'Manage Content and Structure'.