2016织梦标签总结
首页模板
{dede:global.cfg_webname/} 首页标题
{dede:global.cfg_description/} 网站描述
{dede:global.cfg_keywords/} 网站关健词
<title>{dede:global.cfg_webname/} </title>
<META name=keywords content="{dede:global.cfg_keywords/}">
<META name=description content="{dede:global.cfg_description/}">
1:列表模板:
{dede:field.seotitle /}
{dede:field name='keywords'/}
{dede:field name='description' function='html2text(@me)'/}
<title>{dede:field.seotitle /}</title>
<META name=keywords content="{dede:field name='keywords'/}">
<META name=description content="{dede:field name='description' function='html2text(@me)'/}">
2:文章模板
{dede:field.title/}
{dede:field.keywords/}
{dede:field name='description' function='html2text(@me)'/}
<title>{dede:field.title/}</title>
<META name=keywords content="{dede:field.keywords/}">
<META name=description content="{dede:field name='description' function='html2text(@me)'/}">
3.频道模板
{dede:field.seotitle /}
{dede:field.keywords/}
{dede:field.description function='html2text(@me)'/}
<title>{dede:field.seotitle /}</title>
<META name=keywords content="{dede:field.keywords/}">
<META name=description content="{dede:field.description function='html2text(@me)'/}">
列表
图片
{dede:list pagesize='8' titlelen='30' orderby='pubdate' typeid='3'}
<li><a href="[field:arcurl/]"><div class="ncase_fz1"><p><img src="[field:litpic/]" width="140" height="94"><span>[field:title/]</span></p></div></a></li>
{/dede:list}
新闻
{dede:list pagesize='10' titlelen='30' orderby='pubdate' typeid='4'}
<tr>
<td>
<p class="fz1"><a href="[field:arcurl/]">[field:title/]</a></p>
<p class="">[field:pubdate function="GetDateMK(@me)"/]</p></td>
</tr>
{/dede:list}
不是列表 首页
{dede:arclist row='4' titlelen='30' orderby='pubdate' typeid='3'}
<li><a href="[field:arcurl/]"><div class="ncase_fz1"><p><img src="[field:litpic/]" alt="[field:title/]" width="140" height="94"><span>[field:title/]</span></p></div></a></li>
{/dede:arclist}
{dede:pagelist listitem="index,end,pre,next,pageno,option" listsize="5"/}
{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
info 是共多少页
列表要用dede:list 不能用dede:arclist
织梦时间格式
[field:pubdate function="GetDateMK(@me)"/] 2016-05-05
织梦缩略图 {dede:field.litpic /}
{dede:field.click/} 文章内容 阅读量
{dede:field name='pubdate' function='GetDateMk(@me)'/}文章内容时间
浙公网安备 33010602011771号