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><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!