Try our conversational search powered by Generative AI!

New properties on ContentType not showing in CMS


Since upgrading our 6r2 site to 7.5, we've intermittently had problems whereby if we add a property to a ContentType, it does not exist in the CMS. If I then go into Admin mode and add the property manually, it will 'wake up' and become available as per the definition in the code. 

However, if I have set it up manually with a different type to that of the property in the code, it will then tell me "Offline, can't save" whenever I populate it with a value. 

Once I have set it up manually, it tells me the following when I try to update it:

                  "Changes in the model for this page type were ignored because its version( is lower than version in the database("

The latest victims are these two properties...

[Display(Name = "Product Class",
Description = "",
Order = 105,
GroupName = "Information")]
[SelectOne(SelectionFactoryType = typeof(ProductClassSelectionFactory))]
public virtual string ProductClass { get; set; }

[Display(Name = "Quote panel",
Description = "",
Order = 210,
GroupName = "Information")]
public virtual PageReference ReturningCustomerConfigurationPage { get; set; }

Totally stumped by this. 

Mar 05, 2015 17:04


I think the clue here is this message:

"Changes in the model for this page type were ignored because its version( is lower than version in the database("

What that means is that the content type was previously synched from assembly containing your model class that had a greater version ( than what it has now( So I would look into what versions your are setting on the assemblies that contains your content types.

The reason the check exists is to prevent the case where an older version of an assembly was accidently uploaded to a site, damaging it.


Per Gunsarfs

Mar 05, 2015 17:14

Thanks, seems reasonable.. I'm not sure where this assembly version would be stored and how it's suddenly back at though?

Mar 05, 2015 17:15

It's usually managed by an AssemblyVersion attribute, somewhere in your source code, like the AssemblyInfo.cs that usually can be found under properties of a project. It should look something like this:

[assembly: AssemblyVersion("")]

I assume that if that would have been removed it would default to

/Per G

Mar 05, 2015 17:24

Interesting... I've found that the problem is in my local environment, this value is uaually set to by default. However, in the past at some point we have restored a database from our live environment which had a higher version, hence the version locally will always be lower than the version in the database. 

Where is this version number stored? I can find a work around if I can find where it's getting the page type version from. Thanks for your help :)

Mar 06, 2015 10:25

I think it checks against the information found in the ModelType column of tblContentType. You could update the information there, but I always suggest to be very careful when doing direct updates in the DB. The other solution is of course to set an explicit higher version in your local environment.

/Per G

Mar 06, 2015 11:13
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.