1、调用网站标题、关键词、描述
<title>{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}" />
<meta name="description" content="{dede:global.cfg_description/}" />
2、普通导航栏调用
{dede:channel type='top' row='7'}
<li><a href='[field:typelink/]'>[field:typename/]</a> </li>
{/dede:channel}
*调用顶级导航,调用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}
这样就能调用1 2 8 9 这四个栏目,
*调用指定导航栏
3、调用文章列表
复制代码
{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}