With our Development database the "Display in navigation" checkbox for content types has disappeared for all content types, across all sites.Strange is, if the same codebase running on another database like Test and Int databases, the checkbox is there.In the code the checkbox is never (deliberately) hidden. I tried to look for hacks in code for this property, but there is not any: public virtual bool VisibleInMenu
get => (bool) (this["PageVisibleInMenu"] ?? (object) false);
set => this["PageVisibleInMenu"] = (object) value;
Do you have any ideas how to track this down, how to get it back for that particular database?
I searched in the database for PageVisibleInMenu, but I could not find a way to hide/show it.
I found I can change the value in the database directly, but it is not a good solution on the long term.
I can suggest following to try
1 - Restart IIS website - I assume you already did this, its Dev environment
2 - Go to CMS -> Admin -> Content-Type -> Select any page type - Try to add property PageVisibleInMenu. it should give you an error (similar to the field already there etc) but it will also force the interface to sync with the database. I use this option when I deploy the latest release but for some reason, my properties are not appearing in page type.
Are you seeing this type of warning when you select your content type (page/block type)? (CMS -> Admin -> Content Type)
If yes, then follow these solutions
And then check if you properties are updating or not.
I am using IIS Express - restarting does not help.
If I try to add property 'PageVisibleInMenu' to any of these pages which I have, I get an error, that it is reserved for metadata, it is not possible. If I add a new field with any other name, it does not make a difference.
The issue happens on all pages. Model and database versions are the same, there is no warning for this kind of issue. If I add new properties in code, they are being displayed correctly.
I will contact support with this issue.