1、調(diào)用網(wǎng)站標(biāo)題、關(guān)鍵詞、描述
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}" />
<meta name="description" content="{dede:global.cfg_description/}" />
2、普通導(dǎo)航欄調(diào)用
{dede:channel type='top' row='7'}
<li><a href='[field:typelink/]'>[field:typename/]</a> </li>
{/dede:channel}
*調(diào)用頂級導(dǎo)航,調(diào)用7行。
{dede:type typeid='1'}<a href="[field:typeurl/]">[field:typename/]</a> {/dede:type}
{dede:type typeid='2'}<a href="[field:typeurl/]">[field:typename/]</a> {/dede:type}
{dede:type typeid='8'}<a href="[field:typeurl/]">[field:typename/]</a> {/dede:type}
{dede:type typeid='9'}<a href="[field:typeurl/]">[field:typename/]</a> {/dede:type}
這樣就能調(diào)用1 2 8 9 這四個欄目,
*調(diào)用指定導(dǎo)航欄
3、調(diào)用文章列表
復(fù)制代碼
{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/">預(yù)約專家</a>
</div>
</div>
</div>
{/dede:arclist}