Just 做 IT

求知若饥 虚心若愚 안년하세요 (•‾̑⌣‾̑•)


3 years ago 9

1. 一般导航栏目的调用,该类栏目只有主栏目,没有子栏目,这类栏目一般适用于企业网站和个人网站。

{dede:channel type='top' currentstyle="<li class='thisclass'><a href='~typelink~'>~typename~</a> </li>"} 
<li><a href='[field:typeurl/]'>[field:typename/]</a></li>{/dede:channel}

2. 带有二级子栏目的栏目的调用,这类网站用于信息分类比较多的网站。

{dede:channelartlist typeid='0,15' row=30} 
     <li><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a>
          <ul class="sub-menu list-unstyled">
		{dede:channel type='son' noself='yes'}     
		    <li><a href="[field:typelink/]">[field:typename/]</a></li>   

3. 对于没有子栏目的顶级栏目可以使用调用指定栏目的标签

{dede:type typeid=‘指定栏目的id’}<li><a href="[field:typelink /]">[field:typename /]</a></li>{/dede:type}


<li><h3>                   {dede:type typeid='2'}<a href='[field:typelink/]' class="depth_1">[field:typename/]</a>{/dede:type}</h3>  //顶级栏目的调用                   <ul class="children" style="display: none; ">                   {dede:channelartlist typeid='top'  typeid='2'}   //二级栏目和三级栏目的调用这里typeid='子栏目所属的顶级栏目的id'                     <li><h3 ><a href='{dede:field name='typeurl'/}' class="depth_2"><span class="icon10"></span>{dede:field name='typename'/}</a></h3>                                 <ul>                                  {dede:sql sql='Select * from dede_arctype where reid=~id~  ORDER BY id limit 0,20'}  //limit 起始三级栏目id  显示栏目的条数                                  <li><a href="[field:typedir function='str_replace("{cmspath}","",@me)'/]"  class="depth_3">[field:typename/]</a></li>                                  {/dede:sql}                                  </ul>                     </li>                    {/dede:channelartlist}                    </ul>            </li>


There are 9 Comments to "织梦DEDECMS调用导航栏的顶级栏目、二级栏目及三级栏目"

  • Excellently written writeup, doubts all bloggers offered the same content material because you, the internet is actually a greater location. Please maintain it up! eafdgcekbfkkeccb

  • An fascinating dialogue is value comment. I believe that it is best to write more on this matter, it might not be a taboo topic but generally individuals are not sufficient to talk on such topics. To the next. Cheers geabdfbeeccdfaed

  • Every weekend i used to pay a visit this website, for the reason that i wish for enjoyment, for the reason gddekdebgceaegef

  • Hello! viagra from india http://via3indian.com/#4.html

  • Hello! [url=http://via3indian.com/#2.html]viagra from india[/url]

  • Hello!<a href="http://via3indian.com/#1.html">viagra from india</a>

  • Hello! [url=http://via3indian.com/#2.html]viagra india generic[/url]

  • Hello!<a href="http://via3indian.com/#1.html">viagra india generic</a>

  • Oh my goodness! an amazing article dude. Thanks Nonetheless I am experiencing issue with ur rss . Dont know why Unable to subscribe to it. Is there anybody getting similar rss drawback? Anybody who is aware of kindly respond. Thnkx faedceecgddabeaf

Write a Comment