zoukankan      html  css  js  c++  java
  • dedecms调用子栏目及文章列表

    使用DEDECMS程序建网站时,有些栏目下面有子栏目,我们需要在网站前台调用出子栏目以及子栏目下的文章列表。

    dedecms调用子栏目及文章列表可以使用以下的代码进行调用:

    <div class="list">    
    
        {dede:channelartlist}
        <dl class="lball">
        <dt class="lbbt">
        <h3><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></h3>
        <span><a href="{dede:field name='typeurl'/}">查看更多></a></span>
        </dt>
        <dd>
        <ul>
        {dede:arclist titlelen='60' row='2'}
    
        <li> <a href="[field:arcurl/]" title="[field:title /]" target="_blank">
              <p class="list_img"><img src="[field:litpic/]" alt="[field:title /]" /></p>
              <div class="word">
                <h3 class="title">[field:title /]</h3>
                <p class="des">[field:description function="cn_substr(@me,100)"/]...</p>
              </div>
              <div> <span class="tm">[field:pubdate function="GetDateMK(@me)"/]</span> <span class="ed">浏览热度:[field:click/]</span> <span class="yd">阅读全文+</span> </div>
              </a> </li>
    
        {/dede:arclist}
        </ul>
        </dd>
        </dl>
        {/dede:channelartlist}
        </div>
    

      

    来源:https://www.xuewangzhan.com/dedecms/17049.html

  • 相关阅读:
    D. Minimax Problem
    Codeforces Round #592 (Div. 2) D,E
    Codeforces Round #587 (Div. 2) C
    Codeforces Round #587 (Div. 3) E
    Educational Codeforces Round 73 (Rated for Div. 2)
    HDU1247(Hat’s Words)
    HDU1251(统计难题)(字典树模板题
    HDU1525(Euclid's Game)规律博弈
    Find the answer
    Fansblog
  • 原文地址:https://www.cnblogs.com/xiaomifeng/p/10026667.html
Copyright © 2011-2022 走看看