Questions about visual editing of TPL template files

Source: Internet
Author: User
The problem of visual editing of TPL template files is that TPL files are mounted to PHP projects. However, when editing TPL files, the image and style files are replaced with the program path, in this way, you cannot see the visual effect when editing in DW. & nbsp; how can this problem be solved? For example, in Thinkphp, the call path for images or CSS files in the template file is _ PUBLIC _/, and the visualization effect is used in DW to edit TPL template files visually.
Currently, the PHP project is used to mount the TPL file, but the image and style file are replaced with the program path when editing the TPL file, so that the visual effect is invisible during editing in DW. how can this problem be solved?
For example, in Thinkphp, the call path of the image or CSS file in the template file is _ PUBLIC _/. when the visual effect is used in DW for the program, the image cannot be displayed, of course, I can set all of them as absolute paths, but I have to modify them when publishing the interface.
Is there any convenient way to solve this problem? Thank you !!
------ Solution --------------------
You cannot create a directory named _ PUBLIC _. do you want to put the image or CSS file in it?

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.