織夢首頁調用文章列表(標題,內容,縮略圖,短標題,描述。)


{dede:arclist titlelen='50' row='4' typeid='2' addfields='body'  channelid='1' orderby='id'}
<div class="expert clearfix">
    <div class="tp fl">
        <img src='[field:litpic/]'  alt="[field:title/]" />
    </div>
    <div class="expert_txt fl">
        <h3><img src="/images/expert_tb1.jpg" /><span>[field:title/] </span> [field:shorttitle/]</h3>
        <p><span>擅長治療:</span>[field:description function='cn_substr(html2text(@me),100)'/]</p>
        <p><span>專家簡介:</span>[field:body function='cn_substr(html2text(@me),60)'/]<a href='[field:arcurl/]'>【詳情】</a></p>

        <div class="mavin clearfix">
            <a href="/swt/">咨詢專家</a>
            <a href="/swt/">預約專家</a>
        </div>
    </div>
</div>
{/dede:arclist}

備注:上面是我調用醫院文章列表的代碼,用於首頁。

addfields='body'//首頁調用文章內容必帶
   <img src='[field:litpic/]'  alt="[field:title/]" />  //調用縮略圖
[field:description function='cn_substr(html2text(@me),100)'/]</p>  //調用文章描述,大約50中文,一個中文等於兩個字節
[field:shorttitle/]  //短標題標簽

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM