• 织梦channelartlist在栏目列表获取二级三级栏目


    效果

    /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')

    列表页内容页模板调用标签

    <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>
  • 相关阅读:
    Linux面试题大全
    数据库学习002
    数据学习001
    003
    002
    001
    金蝶清空日志数据库脚本
    表格批量导入金蝶专业版销售订单
    金蝶单据清空记账标志
    金蝶单据字段审核后可修改
  • 原文地址:https://www.cnblogs.com/dedehtml/p/9901191.html
Copyright © 2020-2023  润新知