


How to open the external link column of DreamWeaver CMS navigation in a new window
I recently encountered a problem, that is, the navigation of dedecms uses external links, but the original window does not look good when opened, and it is better to open a new window.
OK, Put Dog ... : (Recommended Learning: Weaving Dream CMS )
The following is a simple dede tag code. If there is any deficiencies, please give me some advice
Find the head.htm in the template and replace
<li><a href='[field:typeurl/]'>[field:typename/]</a></li>
with the following
<li> <a href='[field:typeurl/]' [field:id runphp='yes'] if(@me=='4'){ @me="target='_blank'";} else {@me="";}[/field:id]> [field:typename/] </a> </li>
Note: The 4 above is the ID of the column you want to open a new window, just write it like this.
If there are multiple, you can write them all at once. If there are 2 new windows that need to be opened, the code is as follows
<li> <a href='[field:typeurl/]' [field:id runphp='yes'] if(@me=='4'||@me=='5'){ @me="target='_blank'";} else {@me="";}[/field:id]> <span>[field:typename/]</span> </a> </li>
Here are the IDs of 4 and 5. All new windows will be opened, OK!
The above is the detailed content of How to open the external link column of DreamWeaver CMS navigation in a new window. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Chinese version
Chinese version, very easy to use

Dreamweaver Mac version
Visual web development tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Atom editor mac version download
The most popular open source editor