DEDECMS标签调用58种方法.docx
《DEDECMS标签调用58种方法.docx》由会员分享,可在线阅读,更多相关《DEDECMS标签调用58种方法.docx(12页珍藏版)》请在冰豆网上搜索。
DEDECMS标签调用58种方法
DEDECMS标签调用资料大全
——阳光互联
织梦模板网[]免费提供精品织梦模板下载,以DEDE模板最全,最新,最方便用户为宗旨,让您可以轻松打造自己的网站-打造最专业的织梦模板发布基地,DEDECMS建站技术交流平台
1.DEDECMS关键描述调用标签:
fieldname='keywords'/}">
fieldname='description'function='html2text(@me)'/}">
2.模板路径调用标签:
{dede:
fieldname='templeturl'/}
3.网站标题调用标签:
{dede:
globalname='cfg_webname'/}
4.栏目导航调用标签:
首页
{dede:
channeltype='top'row='8'currentstyle="~typename~"}
typelink/]'target="_blank">[field:
typename/]
{/dede:
channel}
5.指定调用栏目标签:
{dede:
onetypetypeid='ID'}[field:
typename/]{/dede:
onetype}
6.频道栏目调用标签:
{dede:
channeltype='self'}
typelink/]'>[field:
typename/]
{/dede:
channel}
7.友情链接调用标签:
{dede:
flinkrow='24'linktype=2/}
8.网站版权调用标签:
{dede:
globalname='cfg_powerby'/}
9.网站备案调用标签:
{dede:
globalname='cfg_beian'/}
10.当前栏目名称标签:
{dede:
fieldname='typename'/}
11.当前位置调用标签:
{dede:
fieldname='position'/}
12.列表文章调用标签:
{dede:
listpagesize='8'}{/dede:
list}
13.栏目链接调用标签:
[field:
typelinkfunction='str_replace("a","aclass=ulink",@me)'/]
14.作者链接调用标签:
[field:
writer/]
15.列表点击调用标签:
[field:
click/]
16.列表评论调用标签:
[field:
postnum/]
17.查阅全文调用标签:
arcurl/]">查阅全文...
18.列表时间调用标签:
[field:
pubdatefunction="GetDateTimeMK(@me)"/]
19.列表分页调用标签:
{dede:
pagelistlistsize='4'listitem='indexprepagenonextend'/}
20.文章标题调用标签:
{dede:
fieldname="title"/}
21.文章来源调用标签:
{dede:
fieldname='source'/}
22.文章作者调用标签:
{dede:
fieldname='writer'/}
23.文章时间调用标签:
{dede:
fieldname='pubdate'function='GetDateMk(@me)'/}
24.文章Tag调用标签:
{dede:
tagtype='current'/}
25.文章点击调用标签:
fieldname='phpurl'/}/count.php?
aid={dede:
fieldname='ID'/}&mid={dede:
fieldname='memberid'/}&view=yes"language="javascript">
26.文章内容调用标签:
{dede:
fieldname='body'/}
27.文章分页调用标签:
{dede:
pagebreak/}
[fieldname='phpurl'/}/stow.php?
arcID={dede:
fieldname=ID/}">收藏]
[fieldname='phpurl'/}/recommend.php?
arcID={dede:
fieldname=ID/}">推荐]
[fieldname='phpurl'/}/feedback.php?
arcID={dede:
fieldname=ID/}">评论]
[打印]
[关闭]
28.文章顶客次数标签:
{dede:
fieldname='digg'/}Digg('digg',{dede:
fieldname='id'/});">顶一下
29.上一篇下一篇标签:
{dede:
prenextget='pre'/}
{dede:
prenextget='next'/}
30.头条推荐调用标签:
{dede:
arclistrow=1titlelen=24orderby=pubdateatt=2}
[field:
textlink/]
[field:
description/]……{/dede:
arclist}
31.最新文章调用标签:
{dede:
arclistrow=8titlelen=24orderby=pubdate}
[field:
textlink/]{/dede:
arclist}
32.热关键字调用标签:
{dede:
hotwordsnum='5'subday='30'/}
33.最新图文调用标签:
{dede:
arclistrow=4titlelen=20orderby=pubdatetype='image.'imgwidth='152'imgheight='98'}
arcurl/]">picname/]"alt="[field:
title/]">titlefunction='htmlspecialchars(@me)'/]"href="[field:
arcurl/]">[field:
title/]
{/dede:
arclist}
34.推荐文档调用标签:
{dede:
arclisttype='commend'titlelen='40'row='10'}
titlefunction='htmlspecialchars(@me)'/]"href="[field:
arcurl/]">[field:
title/]
{/dede:
arclist}
35.随机推荐调用标签:
{dede:
arclisttype='commend'titlelen='26'orderby='rand'row='10'}
titlefunction='htmlspecialchars(@me)'/]"href="[field:
arcurl/]">[field:
title/]
{/dede:
arclist}
36.热点文档调用标签:
{dede:
arclistorderby='click'titlelen='40'row='10'}
titlefunction='htmlspecialchars(@me)'/]"href="[field:
arcurl/]">[field:
title/]
{/dede:
arclist}
37.相关文档调用标签:
{dede:
likearttitlelen='24'row='10'}
titlefunction='htmlspecialchars(@me)'/]"href="[field:
arcurl/]">[field:
title/]
{/dede:
likeart}
38.调用图片链接标记:
arcurl/]">picname/]"alt="[field:
title/]">
arcurl/]'>[field:
image/]
39.调用文字链接标记:
aucurl/]"title="[field:
title/]">[field:
title/]
titlefunction='htmlspecialchars(@me)'/]"href="[field:
arcurl/]">[field:
title/]
40.控制字数描述标记:
[field:
descriptionfunction="cn_substr(@me,100)"/]...
41.调用文章tags标记:
{dede:
tagtype='current'/}
42.文章关键字与描述:
{dede:
fieldname='keywords'/}
{dede:
fieldname='description'function='html2text(@me)'/}
43.栏目介绍:
{dede:
fieldname='description'function='html2text(@me)'/}
44.调用外部htm文件:
{dede:
includefile='head.htm'ismake='yes'/}
45.搜索文章调用标签:
{dede:
globalname='keyword'/}的搜索结果-{dede:
globalname='cfg_webname'/}
46.递增序列号:
[field:
globalname=autoindex/]
47.列表隔5行加一行线:
{dede:
listpagesize='50'}
arcurl/]"title="[field:
titlefunction='htmlspecialchars(@me)'/]"
target=_blank>[field:
titlefunction="cn_substr(@me,48)"/][field:
pubdaterunphp='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]
[field:
globalname=autoindexrunphp="yes"]
if(@me%5==0)@me="
";
else@me="";
[/field:
global]
{/dede:
list}