<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

dedecms顶级列表做首页,实现二级下拉菜单

时间:2020-12-21

dedecms顶级列表做首页,实现二级下拉菜单 
顶级列表如果不做首页的话 很容易实现二级下拉,这里做了首页,再做下拉

就等于做了三级下拉,dedecms默认模版里不支持三级下拉,让我很悲剧。

想了2天怎么给网站去改版,终于搞定了

代码记录下,修改了原模版中的文件

<!-- //二级子类下拉菜单,考虑SEO原因放置于底部 --> 
<script type='text/javascript' src='{dede:global.cfg_cmsurl/}/images/js/dropdown.js'></script> 
<ul id="dropmenu10" class="dropMenu"> 
{dede:channelartlist typeid='10'} 
<li> 
<a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></li>
{dede:sql sql='Select * from dede_arctype where reid=~id~ ORDER BY id limit 0,100'} 
<li><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a><</li> 
{/dede:sql} 
{/dede:channelartlist} 
</ul> 
<script type="text/javascript">cssdropdown.startchrome("dhlist")</script>

0
首页
案例
关于
联系