Version control for templates.
Could we also have version control for templates ?
...and for localconfig.php file too
👍
The problem with both the templates and the local configuration file is that there is no corresponding database entry; and the version class needs a parent table and ID to track changes.
Would it be an option if we make a tl_templates table like for the files? Than every template would have a ID. Maybe there would be also some benefits for the template selection.
E.g. this would avoid that an an exception would be thrown if you change the layout of a page and have a template for a content element that do not exist in the templates subfolder of the new theme (because in tl_content only the template name is saved and the template loader class looks only in the one subfolder of the theme).