Retire a view type after a redesign
Clean up a look the new design does not have.
Life cycle: Redesign, example 18 of 34. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Change each block found to another view type (on explayouts_ui_api before 1.3.29, mind the save quirk).
With an export and settings
- Export all layouts and search
layouts.jsonfor"view_type": "<name>"; switch those blocks first. - Then remove the
ViewTypes[]line (withexp:ini rem) and the template.
Which to choose
Blocks keep their stored view type; a removed one would point at a missing template.
Check
- A new export has no block with the old view type.
Related pages
- Export and import layouts
- Add a view type
- Redesign examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.