


What should I do if the DreamWeaver channelartlist tag cannot obtain external links?
What should I do if the Dreamweaver channelartlist tag cannot obtain external links?
The solution to the problem that the DreamWeaver channelartlist tag cannot obtain external links
Recommended learning:梦Weavercms
Dede when making a drop-down menu , you can use channelartlist to call top-level columns and sub-columns in a loop, but this tag cannot obtain external links.
The drop-down menu uses a piece of code to output multiple top-level columns and sub-columns at the same time.
<div> <ul> {dede:channelartlist row=6}只能首页用,子页要用改成{dede:channelartlist row=6 typeid='top'} <li> <h3 id="a-nbsp-href-dede-field-nbsp-name-typeurl-dede-field-nbsp-name-typename-a"><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a>></h3> <ul> {dede:channel type='son' noself='true'} <li><a href='[field:typelink/]'>[field:typename/]</a></li> {/dede:channel} </ul> </li> {/dede:channelartlist} </ul> </div>
Note: If you want to control the number of top-level columns, please change the red row parameter in the first line above
But in this loop, if the column attribute is an external link, it will not be output. If you need to display external links, in 5.7 you can find include/taglib/channelartlist.lib.php around line 67 and remove the red code
$tpsql = " reid=0 AND ispart<>2 AND ishidden<>1 AND channeltype>0 ";
to
$tpsql = " reid=0 AND ishidden<>1 AND channeltype>0 ";
The above is the detailed content of What should I do if the DreamWeaver channelartlist tag cannot obtain external links?. 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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

WebStorm Mac version
Useful JavaScript development tools
