关于织梦dedeCMS二级导航调用代码的一个问题?有没有织梦的大侠啊?
导航代码
{dede:channel type='self' typeid ='栏目ID'}<a href='[field:typelink/]'>[field:typename/]</a>
{/dede:channel}
列表代码
{dede:arclist typeid=1 row=20 channelid=2 col=5 titlelen=20 orderby='pubdate' imgwidth=160 imgheight=123}
<table cellspacing=2 cellpadding=0 width="98%" border=0>
<tbody>
<tr>
<td align=middle>[field:imglink/]</td></tr>
<tr>
<td align=middle>[field:textlink/]</td></tr></tbody></table>
{/dede:arclist}
找到dede默认的indexhtm文件的这段代码
<div class="picnews">
<dl class="tbox light">
<dt class='light'><strong>图文资讯</strong></dt>
<dd class='light'>
<div class="infiniteCarousel">
<div class="wrapper">
<ul id='imgscroll'>
{dede:arclist row=10 orderby=pubdate type='image' imgwidth='143' imgheight='106'}
<li><a href="[field:arcurl/]">[field:image/]<span class="title">[field:title/]</span></a></li>
{/dede:arclist}
</ul>
</div>
</div>
</dd>
</dl>
</div>
{dede:arclist row=10 orderby=pubdate type='image' imgwidth='143' imgheight='106'}
<li><a href="[field:arcurl/]">[field:image/]</a></li>
{/dede:arclist}这一段就是调用的代码了,如果还想要图文结合可以这样
{dede:arclist row=10 orderby=pubdate type='image' imgwidth='143' imgheight='106'}
<li><a href="[field:arcurl/]">[field:image/]<span class="title">[field:title/]</span></a></li>
{/dede:arclist}
{dede:channelartlist pagesize='20' row='20'}
<li><a href="[field:typelink/]" id="nav_[field:global name=autoindex/]" onmouseover="showMenu('nav_[field:global name=autoindex/]','subnav[field:global name=autoindex/]')">第一章</a>
<div class="subnav disable" id="subnav[field:global name=autoindex/]">
<p class="pointer"></p>
<p><span>
{dede:arclist row='4' orderby='pundate'}
<a href="[field:arcurl/]">[field:title /]</a> |
{/dede:arclist}
</span></p>
</div>
</li>
{/dede:channelartlist}
测试 ok的,没问题 样式不一样的是数字,数字是有规律的,递增,那直接用递增的标签就可以了,我已经加上了,你测试下,
0条评论