I have a problem with resources in my site definition. I have 2 languages dutch (1043) and english (1033). In my site definition i'm using a feature which has a site column. This site column has displayname which is based on a resource.

I also have a contenttype where this column is in but with another displayname which comes from a resource. This contenttype I'm using in a custom list.

If I create the site from the site definition, I get a wrong displayname in my list. But the strange thing is that when I delete the list, and re-activate my feature, the displayname is correct.

Here some code to clarify my problem. This is my site column:

  <Field Type="Number" 
     Group="Datamex Automatisering" 
     xmlns="http://schemas.microsoft.com/sharepoint/" />

I'm using this site column in my contenttype with a resource in my displayname

   <ContentType ID="0x01010044e1b4de787b4b7d9ae26b770906f77f0092a56f1213a94172b4c30d7dd97b04ea0068d247cd7b394362b3dc725f72d020ef"
       <FieldRef ID="{b9d9771e-72ba-411f-b259-1776ddd99526}" Name="DMXAutoNumber" DisplayName="$Resources:Yucatan.Fields,CertificateNumber;" />

In my custom list I reference this contenttype, and using these fields in my view:

      <FieldRef Name="DocIcon" />
      <FieldRef Name="Title" />
      <FieldRef Name="LinkFilename" />
      <FieldRef Name="AdministrationNumber" />
      <FieldRef Name="DMXAutoNumber" />
      <FieldRef Name="Pages" />
      <FieldRef Name="Modified" />

In the of the sitecolumn the text is "AutoNumber", in the resource of the contenttype the text is "Certificate".

If I activate the feature myself the text is "Certificate" which is correct. If I create a site with my site definition (which uses the same feature to create the libraries) the text is "AutoNumber" which is incorrect.

Does anyone know why this is happening and how to fix it?

  • I have some simular strange behavior when i was creating site by using powershell, but reactivate feature by hands. The solve was to restart powershell before deploying.
    – IAfanasov
    Commented Jan 9, 2012 at 16:11
  • What do you mean by Wrong Name? it is taken from a wrong resource file? Commented Jan 9, 2012 at 18:31
  • With wrong name I mean the name of the site column, not the name in the contenttype.
    – Marlou
    Commented Jan 10, 2012 at 13:37

2 Answers 2


Are you creating this using code or markup?

If you coded this, use .TitleResource (and .DescriptionResource if needed) instead of .Title to set the title properly for all desired languages.

.Title will only get you the title for the current language running the sitecreation process, and the .Title property doesn't work properly with the quicknav on multilingual sites either.

  • I'm creating the sitecolumn, contenttype and list using markup
    – Marlou
    Commented Jan 10, 2012 at 13:37

finally found the solution. Deleting the Overwrite="TRUE" from the field definition resolved my issue

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.