| When Dede makes a drop-down menu, he can use channelartlist to call top-level columns and sub columns circularly, but this tag cannot obtain external links,
In the pull-down menu, a piece of code can output multiple top-level columns and sub level columns at the same time.
<div> <ul> {dede: channelartlist row=6} It can only be used on the first page, and the sub page should be changed to {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
However, if the column attribute is an external link, it will not be output. If the external link needs to be displayed, 5.7 can find the line 67 of include/taglib/channelartlist.lib.php to remove the red code
$tpsql = " reid=0 AND ispart<>2 AND ishidden<>1 AND channeltype>0 ";
Change to
$tpsql = " reid=0 AND ishidden<>1 AND channeltype>0 "; |
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.