日期:2019-10-18 19:07 編輯:張楷
織夢channelartlist指定欄目調(diào)用二級(jí)欄目和三級(jí)欄目實(shí)現(xiàn)方法如下:
在織夢include/taglib/channelartlist.lib.php中 找到
if($typeid==0 || $typeid=='top')
改成
if($typeid=='reid')
{
global $cfg_Cs;
$tid = $refObj->TypeLink->TypeInfos['id'];
if(!is_array($cfg_Cs)) require_once(DEDEDATA."/cache/inc_catalog_base.inc");
if(!isset($cfg_Cs[$tid][0]) || $cfg_Cs[$tid][0]==0) $topid = $tid;
else $topid = GetTopid($cfg_Cs[$tid][0]);
$tpsql = " reid='$topid' AND ishidden<>1 ";
$order = " ORDER BY sortrank ASC";
}
elseif($typeid==0 || $typeid=='top')
列表頁內(nèi)容頁模板調(diào)用標(biāo)簽
<ul>
{dede:channelartlist typeid=reid}
<h2><a href="{dede:field.typeurl/}">{dede:field.typename/}</a></h2>
{dede:channel type=son noself=yes}
<li><a href="[field:typeurl/]">[field:typename/]</a></li>
{/dede:channel}
{/dede:channelartlist}
</ul>
以上就是關(guān)于【織夢channelartlist指定欄目調(diào)用二級(jí)欄目和三級(jí)欄目實(shí)現(xiàn)方法】的文章內(nèi)容,如果您還想了解更多關(guān)于網(wǎng)站建設(shè)與網(wǎng)絡(luò)推廣的相關(guān)文章,請繼續(xù)查看【織夢教程】欄目的其它文章
來源www.dashustudio.net廣州明行威,致力于中小企業(yè)網(wǎng)絡(luò)營銷推廣、整體外包運(yùn)營(網(wǎng)站建設(shè)、SEM、SEO等)、企業(yè)SEO內(nèi)訓(xùn)、信息流廣告運(yùn)營
歡迎交流 加微信13430336474 廣州張楷