New Property not showing in edit mode

Vote:
 

Hi there, 

Working on an existing block, 

[Display(Name = "string 1", GroupName = SystemTabNames.Content, Order = 10)]
[CultureSpecific]
public virtual string String 1{ get; set; }

[Display(Name = "string2", GroupName = SystemTabNames.Content, Order = 15)]
[CultureSpecific]
public virtual string string2{ get; set; }

[Display(Name = "string3", GroupName = SystemTabNames.Content, Order = 20)]
[CultureSpecific]
public virtual string string3{ get; set; }

[Display(Name = "bool1", GroupName = SystemTabNames.Content, Order = 25)]
[CultureSpecific]
public virtual bool bool1{ get; set; }

[Display(Name = "bool2", GroupName = SystemTabNames.Content, Order = 30)]
[CultureSpecific]
public virtual bool bool2{ get; set; }

[Display(Name = "NewString", GroupName = SystemTabNames.Content, Order = 35)]
[CultureSpecific]
public virtual string NewString{ get; set; }

For some reason it will just not appear in the CMS / Edit panel, everything else appears but no joy as of yet?  I'm doing nothing differently, its just a string it shouls appear no? 

Any ideas? 

#216236
Jan 30, 2020 13:34
Vote:
 

Can't see anything wrong here. No errors in the log?

Could be a problem with assembly versions:

https://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2015/3/new-properties-on-contenttype-not-showing-in-cms/

#216243
Jan 30, 2020 15:05
Vote:
 

You can check in admin mode on the content type if the property has been created in the background. Also check if you have any javascript errors where you are editing the property. Sometimes you might have an old custom property in background that will break edit mode.

#216245
Jan 30, 2020 15:29
Vote:
 

It's also worth checking your web.config to see whether you have model sync commit disabled

<episerver>
    <applicationSettings enableModelSyncCommit="false" />
</episerver>

If that's set to false, changes in the model won't be applied.

#216250
Jan 30, 2020 17:51
Vote:
 

Verify database version, it might not be sync with application.

Can you check the application logs.

#216270
Jan 31, 2020 9:53
Vote:
 

I would start with checking in admin mode as Daniel explains. If not present there, check configuration as Pauls describes.
In admin mode locate the block type, click «settings», then «revert to default».

Are someone else using the same database? If the other guy restarts his site after you, and the property does not have any content, it could get removed.

#216272
Jan 31, 2020 10:10
Vote:
 

I would agree with Tomas, every time I encounted this it is because someone has done manual changes in admin mode and that means that Epi ignore your code changes

#216276
Jan 31, 2020 14:23
Vote:
 

database version was not in sync with application! 

thank you! 

#217061
Feb 14, 2020 10:18
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.