Merge pull request #759 from mkdgs/patch-3

add a path for overriding templates
1.10.x
Yannick Warnier 11 years ago
commit c0ef6367c7
  1. 2
      main/inc/lib/template.lib.php
  2. 9
      main/template/overrides/README.md

@ -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
);

@ -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
```
Loading…
Cancel
Save