Dream dedecms Template Web site lets you specify how the column opens in a new window:
When we use the Dream dedecms template, we sometimes need to make a column an external link. But in the Dede template site backstage inside the set up a good link, the page will all open in the current window, inconvenient to use. The following methods of success of your experiment are described below:
The first method, find the head.htm in the template
Will <li><a href= ' [field:typeurl/] ' >[field:typename/]</a></li>{/dede:channel}
Replace with the following
<li><a href= ' [field:typeurl/] ' target= ' _blank ' >[field:typename/]</a></li>{/dede:channel}
But there is a flaw in this approach, that is, all the columns will be opened in a new window, the use will appear very messy. So how do I get the specified column to open in a new window, let's look at the second method.
Find head.htm in a template
Will <li><a href= ' [field:typeurl/] ' >[field:typename/]</a></li>{/dede:channel}
Replace with the following
<li><a href= ' [field:typeurl/] ' [field:id runphp= ' yes '] if (@me = = ' 3 ') {@me = "target= ' _blank '";} else {@me = "";} [/field:id]>[field:typename/]</a></li>{/dede:channel}
Note that the above 3 is the column ID number that we want the new window to open, so it can solve the problem that the external link new window opens.