织梦调用 子栏目及子栏目下的文章标题 5
<ul><liid='sub'class='current'><ahref='#'>栏目1</a><spanclass='news-border'>网站导航</span>...
<ul>
<li id='sub' class='current'><a href='#'>栏目1</a><span class='news-border'>
网站导航
</span></li>
<dl class='sub-list' style='display:block' ><dd><a href='#' class='active'>文章1</a></dd>
<dd><a href='#'>文章2</a></dd>
<dd><a href='#'>文章3</a></dd>
<span class='news-border'></span></dl>
<li id='sub'><a href='#'>栏目2</a><span class='news-border'></span></li>
<dl class='sub-list' ><dd><a href='#'>文章1</a></dd>
<a href='#'>文章1</a></dd>
<a href='#'>文章2</a></dd>
<span class='news-border'></span></dl>
</ul>
------------------------------------------------------------------------------------------
<li id='sub' class='current'><a href='#'>栏目1</a><span class='news-border'></span></li>
class='current' 为选中的CSS样式
<dl class='sub-list' style='display:block' >
class='sub-list' style='display:block' 为文正选中的CSS样式
<ul>
{dede:channel type='son' orderby='id' orderway='asc' currentstyle="
<li id='sub' class='current'><a href='~typelink~' class='thisclass'>~typename~</a><span class='news-border'></span></li>
"}
<li id='sub'><a href='[field:typeurl/]'>[field:typename/]</a><span class='news-border'></span></li>
{/dede:channel}</ul>
现在只会调用 二级栏目 展开
<li id='sub' class='current'><a href='#'>栏目1</a><span class='news-border'>
网站导航
</span></li>
<dl class='sub-list' style='display:block' ><dd><a href='#' class='active'>文章1</a></dd>
<dd><a href='#'>文章2</a></dd>
<dd><a href='#'>文章3</a></dd>
<span class='news-border'></span></dl>
<li id='sub'><a href='#'>栏目2</a><span class='news-border'></span></li>
<dl class='sub-list' ><dd><a href='#'>文章1</a></dd>
<a href='#'>文章1</a></dd>
<a href='#'>文章2</a></dd>
<span class='news-border'></span></dl>
</ul>
------------------------------------------------------------------------------------------
<li id='sub' class='current'><a href='#'>栏目1</a><span class='news-border'></span></li>
class='current' 为选中的CSS样式
<dl class='sub-list' style='display:block' >
class='sub-list' style='display:block' 为文正选中的CSS样式
<ul>
{dede:channel type='son' orderby='id' orderway='asc' currentstyle="
<li id='sub' class='current'><a href='~typelink~' class='thisclass'>~typename~</a><span class='news-border'></span></li>
"}
<li id='sub'><a href='[field:typeurl/]'>[field:typename/]</a><span class='news-border'></span></li>
{/dede:channel}</ul>
现在只会调用 二级栏目 展开
1个回答
展开全部
type='son' 二级栏目 type='top' 一级栏目,同时调用要用套嵌标签调用,如下面五元模板铺高亮导航形式,这里已经删除了高亮的代码
{dede:channelartlist typeid='top'}
<li class=''><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a> <ul>
{dede:channel type='son' noself='yes'}
<li><a href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel} </ul> </li>
{/dede:channelartlist}
{dede:channelartlist typeid='top'}
<li class=''><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a> <ul>
{dede:channel type='son' noself='yes'}
<li><a href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel} </ul> </li>
{/dede:channelartlist}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |