Skip to content

Make all custom templates work in override mode #2156

@ywarnier

Description

@ywarnier

Current behavior

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.

Expected behavior

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.

Steps to reproduce

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.

Chamilo Version

1.11.x 20170921

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions