New templates in main/template/xyz/ must have all the .tpl files from main/template/default/, otherwise fatal errors appear all over the places. This creates issues when updating Chamilo as new files appear in main/template/default/ which are not documented and generate fatal errors for portals updated on the basis of a custom TPL.
Creating a new template and maintaining it should just be a matter of redefining one or two .tpl files in a separate foder in main/template/. It should not be necessary to have all files present to make it work correctly.
Create a template from a copy of the main/template/default/ folder. Remove one file from that copy. Navigate to a page that uses that file as part of its template -> error.
1.11.x 20170921
Apparently, this was already fixed by @jmontoyaa in 83df5475b68399c4f435f55bd29ae6cf5355da4a
I'm adding another small change allowing the main/template/overrides/ folder to be checked before going into other templates.
Hi, I have a problem with this, when adding an override for the templates on "layout" folder, it doesn't recognize the changes but with other folders works.
Anyone knows how to fix it?
Most helpful comment
I'm adding another small change allowing the main/template/overrides/ folder to be checked before going into other templates.