Dede5.6/5.7調用相關文章默認只是調用當前分類的相關文章,那麼怎麼調用全站相關文章呢?下面,跟版網爲你們分享Dede5.6/5.7調用全站相關文章的方法。php
模板調用代碼:
<div class="hot mt1">
<dl class="tbox">
<dt><strong>相關文章</strong></dt>
<dd>
<ul class="c1 ico2">
{dede:likearticle col='2' row='10' titlelen='42'}
<li><a href="[field:arcurl/]">[field:title/]</a></li>
{/dede:likearticle}
</ul>
</dd>
</dl>
</div>html
修改核心文件:
找到文件:\include\taglib\likearticle.lib.php
找到代碼:$typeid = " And arc.typeid in($typeid) And arc.id<>$arcid ";
修改成:$typeid = " And arc.id<>$arcid ";
保存後,再更新文檔就能夠了。curl
原文地址:http://www.genban.org/news/dedecms-13051.htmlurl