-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Summary
I haven't looked to see if a plugin for this exists, but a common issue we run into is updating templates in the them, pushing up to a remote environment (Dev/Test/Staging/Production), and the changes not showing up because the template needs to be reset.
Something we could potentially add to the Viget MU Plugin or Blocks Toolkit is some kind of admin notification or system report showing when templates/patterns need to be reset because the file has been updated more recently than the data stored in the database (which overrides the theme file).
Stretch Goal
Another related feature that would be great to have for local development only would be to somehow audit templates and monitor whenever a block is added that would require customization of a template in the Full Site Editor.
We want to make sure when we build custom Archive/Singular/Page/Header/Footer templates that there's no need to override what's in the theme. This can happen with custom text/headings, images, and other blocks where the content can't be stored in the theme template file. For example, an uploaded image may not exist or could have different IDs in different environments, so it's not something that can be saved as part of the template file.
The solution would be to use a separate template part or component that breaks out the customizable portion of the template into a separate file which is less likely going to need to be reset.