After Dede modifies the templets template folder, the following error occurs: "cannot be found at this location :".

Source: Internet
Author: User

How to modify the templets template Folder:

First, find the system configuration file common. Inc. php, which is stored in the include directory. Open common. Inc. php to modify the default template directory templets,

Search: $ pai_templets_dir = $ pai_cmspath. '/templets ';

Change the red part to the desired folder name, for example, xinfu800.com _ moban. After the modification, manually rename templets to xinfu800.com _ moban. You can also modify the plug-in directory and member directory.

After the above files are modified, an error message "you cannot find *** in this location" is displayed on the homepage. Then follow the steps below to solve the problem.

Find the dedetag. Class. php file in the include directory and open it. Modify templets in the following code to modify the template directory name you have modified.

If (file_exists (dederoot. "/templets /". $ filename) {$ okfile = dederoot. "/templets /". $ filename;} else if (file_exists (dederoot. '/templets /'. $ cfg_df_style. '/'. $ filename) {$ okfile = dederoot. '/templets /'. $ cfg_df_style. '/'. $ filename;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.