Home  >  Article  >  CMS Tutorial  >  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?

藏色散人
藏色散人Original
2020-01-07 09:49:362438browse

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=&#39;top&#39;}
    <li>
    <h3><a href=&#39;{dede:field name=&#39;typeurl&#39;/}&#39;>{dede:field name=&#39;typename&#39;/}</a>></h3>
         <ul>
             {dede:channel type=&#39;son&#39; noself=&#39;true&#39;}
             <li><a href=&#39;[field:typelink/]&#39;>[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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn