找回密码
 立即注册

destoon 调用多级栏目名称及内容案例

admin 2019-1-21 11:56 127人围观 seo建站

destoon 调用多级栏目名称及内容案例
destoon 调用多级栏目名称及内容案例

参考: www.bai9.com.cn 白酒网

<div class="wzsw">
{php $maincat= 22;} <!-- 获取主分类ID-->
{loop $maincat $i $m}
{php $child = get_maincat($maincat, $CATEGORY, 1);}
 {php $childs = get_maincat($m[catid], $CATEGORY, 1);}
  {loop $childs $j $c}
 
 {if $j < 5 } <!--只调用 5楼 -->
 {php $n=$j+1;}
<div class="wzs">
  <div class="con" id="lou{$n}">
 
    <div class="zs-c-title line_b clearfix">
    <span class="lou">{$n}楼</span>
      <h2><a href="{$MOD[linkurl]}{$c[linkurl]}" rel="external nofollow" rel="external nofollow" rel="external nofollow" >{$c[catname]}</a></h2>
      <div class="keyword"></div>
      <a href="{$MOD[linkurl]}{$c[linkurl]}" title="{$c[catname]}" target="_blank" class="more">更多</a>
      
      </div>
    <div class="zs-proListBox clearfix">
     
  
    </div>
<div class="clear"></div>
  <div class="zs-news03 left bgf">
 
       <div class="zs-s-title clearfix">
        <h2><a href="{$MOD[linkurl]}{$c[linkurl]}" title="最新{$c[catname]}" target="_blank">最新{$c[catname]}</a></h2>
        <a href="{$MOD[linkurl]}{$c[linkurl]}" title="最新{$c[catname]}" target="_blank" class="more">更多</a>
    </div>
<ul>
 <!--{php $tags=tag("moduleid=$moduleid&condition=status=3&areaid=$cityid&length=40&catid=".$c[catid]."&order=".$MOD[order]."&pagesize=5&datetype=2&target=_blank&template=null")}-->
 
      {loop $tags $t}
      <li><em></em><a href="{$t[linkurl]}" target="_blank">{$t[title]}</a>
   </li>
   {/loop}
</ul>
  </div>
  <div class="zs-news03 right bgf">
 {php $mi = 109;}<!--指定新闻分类ID-->
      {php $mii = $mi + $j;}
    <div class="zs-s-title clearfix">
        <h2><a href="{DT_STATIC}news/list-{$mii}.html" title="{$c[catname]}资讯" target="_blank">{$c[catname]}资讯</a></h2>
        <a href="{DT_STATIC}news/list-{$mii}.html" title="{$c[catname]}资讯" target="_blank" class="more">更多</a>
    </div>
   
    <ul>
   
     <!--{php $tages=tag("moduleid=21&condition=status=3&areaid=$cityid&length=40&catid='$mii'&order=".$MOD[order]."&pagesize=5&datetype=2&target=_blank&template=null")}-->
 
      {loop $tages $t}
      
      <li><em></em><a href="{$t[linkurl]}" target="_blank">{$t[title]}</a>
   </li>
   {/loop}
      
    </ul>
  </div>
</div>

  </div>
   <div class="blank6"></div>
 {/if}
 {/loop}
{/loop}

</div><!--wzsw end-->
二维码
欢迎关注,微信 【www_csseo_cc】