Home
Github
Wiki
Videos
Contact
Sponsor
Renaming Viewmodel Classes
If you rename a ViewModel class, it's content will need to be updated to reflect this change, otherwise visiting pages of the renamed class will error and you won't be able to edit that page in the back office until you update the `Type` property of the content and republish. you can do this by visiting the the Settings->Orphaned Models page and mapping the old Type which no longer exists to a new Type from the available ViewModels. **Take care to select the right ViewModel for the new Type! also, backup your database before making this change!** alternatively, you could do this using SQL against the database. you could change the `Type` value of the content in the `PuckRevision` table from the old type to the new type. you will then need to Republish the entire site from the backoffice so the new values are indexed. that said, i wouldn't recommend working with the database directly unless you really have to.