Current location - Recipe Complete Network - Catering franchise - How does dedecms modify the template and replace it?
How does dedecms modify the template and replace it?
Dedecms template replacement method-The easiest way to replace a template is to directly overwrite all files in the templates directory, but this will cause the original template to be overwritten. The second method of dedecms template replacement is to let dedecms find the template directory through background management, and the other method is to replace the template directory of the whole website. System Management-Site Settings-Default template style is set to directory name. For example, if a new template is downloaded and the directory of the new template is newtemplet, then the template with basic modules such as /NewTemplet/Default will be searched in this directory. Dedecms Template Replacement Method 3 Modify the template of a specific page and modify the template of a single page, and then enter Channel Management-Website Column Management-Advanced Options to select the template address and make full use of the parent directory like .../to jump to the template directory. Dedecms Template Replacement Method 4 Modify the source code and change the template directory to find another method, which is more direct: modify the config_base.php in the include directory to find $ CFG _ templates _ dir = $ CFG _ CMS path. /templates '; Just change it to a new directory name and update the HTML. All the template styles have changed. This method is not recommended, but if you want to prevent the template from being stolen, there is another method: upload the new template directly to the templates/default directory, then click column management and select the new template from column advanced parameters.