dede调用一个栏目下的子栏目

dede如何调用一个栏目下的子栏目 方法以下:
一、首页。
index.htm
改页能够显示首页个栏目的rss连接。
方法:找到
{dede:channelArtlist typeid=0 col=1 tablewidth='100%'}
{dede:type}{/dede:type}
{/dede:channelArtlist}
将代码:<a href="/plus/rss.php?tid=[field:ID /]" target="_blank">RSS</a>添加到{dede:type}{/dede:type}中间的某个位置,根据你的布局本身定义。php

注意,{dede:type}{/dede:type}中间不能再使用phpurl 底层变量得到 /plus 路径,请固定改变量html

实例应用:web

{dede:channelArtlist col=7 tablewidth='100%'}
   <div class=area>
    <DIV class=title>
     {dede:type}
      <h2>[field:typename/]</h2>
      <a class=more href="[field:typelink/]" target=_blank>更多>></a>
     {/dede:type}
    </DIV>
    <UL class=list2>
     {dede:arclist flag='h' titlelen='30' row='16'}
      <li><a href="[field:arcurl/]" title="[field:title/]" target=_blank>[field:title/]</a></li>
     {/dede:arclist}
    </UL>
   </div>
   {/dede:channelArtlist}curl

文章出自: 计算机知识网
原文连接:http://www.baoluowanxiang.com/a/website/cms/2011/0108/2717.html布局

相关文章
相关标签/搜索