--------------------------------------------------------------------------------
推荐文档调用标签: {dede:arclist type='commend' titlelen='40' row='10'}
--------------------------------------------------------------------------------
随机推荐调用标签: {dede:arclist type='commend' titlelen='26' orderby='rand' row='10'}
--------------------------------------------------------------------------------
热点文档调用标签: {dede:arclist orderby='click' titlelen='40' row='10'}
--------------------------------------------------------------------------------
相关文档调用标签: {dede:likeart titlelen='24' row='10'}
--------------------------------------------------------------------------------
调用图片链接标记:
[field:image/]
--------------------------------------------------------------------------------
调用文字链接标记: [field:title/]
[field:title /]
--------------------------------------------------------------------------------
控制字数描述标记: [field:description function="cn_substr(@me,100)"/]...
--------------------------------------------------------------------------------
调用文章tags标记: {dede:tag type='current'/}
--------------------------------------------------------------------------------
文章关键字与描述: {dede:field/}
{dede:field function='html2text(@me)'/}
--------------------------------------------------------------------------------
栏目介绍:{dede:field function='html2text(@me)'/}
--------------------------------------------------------------------------------
调用外部htm文件:{dede:include file='head.htm' ismake='yes'/}
--------------------------------------------------------------------------------
搜索文章调用标签:{dede:global/}"的搜索结果 - {dede:global/} 搜索" {dede:global/}" 的结果
--------------------------------------------------------------------------------
递增序列号: [field:global name=autoindex/]
--------------------------------------------------------------------------------
列表隔5行加一行线:
{dede:list pagesize='50'}
$a="".strftime('%m-%d',@me)."";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
[field:global name=autoindex runphp="yes"]
if(@me%5==0)@me="";
else @me="";
[/field:global]
{/dede:list}
--------------------------------------------------------------------------------
最新 文章列表 “隔行换色” 的方法
{dede:arclist orderby=pubdate titlelen='26' row='10'}
[field:global runphp='yes' name=autoindex]
$a="
";
$b="
";
if ((@me%2)==0) @me=$a;
else @me=$b;
[/field:global]
{/dede:arclist}
--------------------------------------------------------------------------------
24小时内更新的文章时间显示为红色:
[field:pubdate runphp='yes']
$a="".strftime('%m-%d',@me)."";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
--------------------------------------------------------------------------------
COPY页面内容,自动在后面加上网站信息,利于SEO
--------------------------------------------------------------------------------
按时间点击文章排行榜调用标签:
按总: {dede:arclist row='24' titlelen=24 orderby=click}
按月: {dede:arclist row='24' titlelen=8 orderby=click subday=30}
按周: {dede:arclist row='24' titlelen=8 orderby=click subday=7}
在首页调用某栏目的子栏目
{dede:channel type=’sun’ typeid=’栏目ID’}
[field:typename/]
{/dede:channel}
或者
{dede:global name=’maplist’/}
--------------------------------------------------------------------------------