diff --git a/main/inc/lib/template.lib.php b/main/inc/lib/template.lib.php index 1ae2028182..395cc95186 100755 --- a/main/inc/lib/template.lib.php +++ b/main/inc/lib/template.lib.php @@ -66,7 +66,7 @@ class Template $this->load_plugins = $load_plugins; $template_paths = array( - api_get_path(SYS_PATH) . 'custompages', // custom pages folder + api_get_path(SYS_CODE_PATH) . 'template/overrides', // user defined templates api_get_path(SYS_CODE_PATH).'template', //template folder api_get_path(SYS_PLUGIN_PATH) //plugin folder ); diff --git a/main/template/overrides/README.md b/main/template/overrides/README.md new file mode 100644 index 0000000000..a19e93edeb --- /dev/null +++ b/main/template/overrides/README.md @@ -0,0 +1,9 @@ +This directory is the right place for override an existing template. + +Just copy the orignal template with the same relative path. +ex: +``` +default/layout/head.tpl + +the_plugin_dirnae_name/path/of/template/in/plugins.tpl +```