core icon indicating copy to clipboard operation
core copied to clipboard

Version control for templates.

Open lionel-m opened this issue 11 years ago • 4 comments

Could we also have version control for templates ?

lionel-m avatar Apr 12 '14 09:04 lionel-m

...and for localconfig.php file too

Serhii-DV avatar Apr 12 '14 09:04 Serhii-DV

👍

jankout avatar Apr 09 '16 06:04 jankout

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.

leofeyer avatar Apr 14 '16 12:04 leofeyer

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).

agoat avatar Apr 30 '16 12:04 agoat