In our software model using DEDECMS, we often encounter http://www.aliyun.com/zixun/aggregation/18479.html "> Download address open Way, today Dedecms {dede: Field name= ' Softlinks '/} to download the changes to the label.
By default, the download address in Dedecms is shown in the screenshot below, which is usually opened directly in the original window, which is very inconvenient for everyone, our goal is to open the link in a new window:
Modified as follows:
Download the two template files in the/templets/system/folder
1. channel_downlinkpage.htm: This file is used to modify the text displayed by the link
The default is: <a href= ' ~link~ ' > go to download Address List </a>
Modify it to: <a href= ' ~link~ ' target= ' _blank ' > enter download address </a> to open a file in a new window
2. channel_downlinks.htm: This file is used to display the newly added download address
The following code is the most basic, unchanged code: <li><a href= "~link~" target= "_blank" >~server~</a></li>
The above methods to share to everyone, hope for everyone useful!
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.