LinusEkstrom / AddOn.Episerver.Settings

This Episerver addon tries to bring a standardized way of managing settings for Episerver solutions.
MIT License
11 stars 6 forks source link

removing old settings #36

Closed natbredenkamp closed 1 year ago

natbredenkamp commented 2 years ago

is there a way to remove unused old settings? We don't have access to the database, so cant follow the steps at the end of the read me. We had added a setting on one of the global settings pages and have since removed it, but it is still there and not only will not remove, but stops other settings on that 'page' from being updated. cant do the usual thing of going to the contentTypes and deleting properties where FromCode is No also getting this intermittently The view 'Bootstrapper' was not found. Searched locations: ["AddOn.Episerver.Settings.Views/Views/DefaultShellModule/Bootstrapper.cshtml","/CmsDefault/AddOn.Episerver.Settings.Views/Views/DefaultShellModule/Bootstrapper.cshtml","AddOn.Episerver.Settings.Views/Views/Shared/Bootstrapper.cshtml","/CmsDefault/AddOn.Episerver.Settings.Views/Views/Shared/Bootstrapper.cshtml","AddOn.Episerver.Settings.Views/Pages/Shared/Bootstrapper.cshtml","/CmsDefault/AddOn.Episerver.Settings.Views/Pages/Shared/Bootstrapper.cshtml","AddOn.Episerver.Settings.Views/Util","/CmsDefault/AddOn.Episerver.Settings.Views/Util"]

vansterhant commented 2 years ago

There was previously a bug (https://world.optimizely.com/support/Bug-list/bug/CMS-21725) that made it impossible to solve without manually editing the database. Bu if you are on EPiServer.CMS.Core 12.4.1 or newer it is possible to drop no longer existing settings-content-types by:

  1. Remove the settings-class
  2. In the global settings, right click on the setting to remove, "move to trash"
  3. In CMS edit trash view, delete the setting
  4. Restart the site, this will autmatically clean content types that no longer have backing code or instances

image

LinusEkstrom commented 1 year ago

Have you tried the suggestion above @natbredenkamp yet? Want to see if we can close this ticket...

LinusEkstrom commented 1 year ago

Closing ticket due to not getting a response.