DEDECMS模板制作必备手册1[转]
<a href="{dede:field name='memberurl'/}/index_do.php?fmdo=user&dopost=regnew">注册帐号</a>
</FORM>
</span>
<script language="JavaScript">CheckLogin();</script>
-----------------------------------------------------------
常用标签:
1.
[field:arcurl /] 文章地址
2.
[field:title /] 文章标题
常用于首页、栏目、文章列表页
3.
[field:imglink/]
显示缩略图及链接地址
4
[field:info/] 文章简介
5
[field:description/] 文章简介 多用于文章列表页
6.
[field:textlink/] 等价于<a href="[field:arcurl /]" target=_blank>[field:title /]</a>
7.
[field:pubdate function=strftime('%m-%d',@me)/] 显示文章发布时间,形式为月-日 例如:03-07
8.
[field:pubdate function="GetDateTimeMK(@me)"/] 详细时间,形式为年-月-日 时-分-秒
9.
[field:filename /]等价于[field:arcurl /] 常用于栏目、文章列表页
10.
[field:typelink /] 栏目地址.
11.
[field:typename /] 栏目名称
12.
[field:postnum/] 评论条数
13.
[field:source/] 来源
14.
[field:writer/] 作者
15.
[field:litpic function="CkLitImageView(@me,120)"/] 提取文章缩略图
16.
[field:click/] 文章点击次数
17.
[field:phpurl/]/stow.php?arcID=[field:id/] 相应文章加入收藏路径 常用于栏目、文章列表页2 }
18.
[field:phpurl/]/recommend.php?arcID=[field:id/] 推荐文章路径 常用于栏目、文章列表页)
文章正文页常用调用标签::
19.
{dede:field name="title"/} 文章标题 多用于正文页
20.
{dede:field name='pubdate' function='GetDateMk(@me)'/}显示文章发布时间 多用正文页
21.
{dede:field name='phpurl'/}/stow.php?arcID={dede:field name=ID/}相应文章加入收藏路径 多用于正文
22.
{dede:field name='phpurl'/}/recommend.php?arcID={dede:field name=ID/}推荐文章路径多用于正文
23.
{dede:field name='source'/} 来源: }
24
{dede:field name='writer'/} 作者
25.
{{dede:field name='postnum'/}评论条数
26.
{dede:field name='phpurl'/}/feedback.php?arcID={dede:field name=ID/} 相应文章所有评论链接
27.
{dede:field name='body'/} 文章内容
28.
<script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='ID'/} 文章点击次数)
29.
{dede:pagebreak/} 文章内容分页
30.
{dede:likeart titlelen='40' row='10'/} 相同类型文章调用
--------------------------------------------
文章调用:
<!------------------------------------调用推荐文章:指定N个栏目的10条新闻,标题长为40---------------------------->
{dede:arclist typeid='' titlelen='40' row="10" type='commend'}
<LI><a href="[field:arcurl /]" target=_blank>[field:title /]</a></LI>
{/dede:arclist}
<!------------------------------调用热门点击文章:指定N个栏目的10条新闻,标题长为40----------------------------->
{dede:arclist typeid='' titlelen='40' row="10" orderby='hot'}:
<LI><a href="[field:arcurl /]" target=_blank>[field:title /]</a></LI>
{/dede:arclist}
<!------------------------------调用热门评论文章:指定N个栏目的10条新闻,标题长为40----------------------------->
{dede:arclist typeid='' titlelen='40' row="10" orderby='postnum'}
<LI><a href="[field:arcurl /]" target=_blank>[field:title /]</a></LI>
{/dede:arclist}
<!------------------------------调用最新文章:指定N个栏目的10条新闻,标题长为40------------------------------>
{dede:arclist typeid='' titlelen='40' row="10" orderby='senddate'}
<LI><a href="[field:arcurl /]" target=_blank>[field:title /]</a></LI>
{/dede:arclist}
<!------------------------------调用月点击排行:指定N个栏目的10条新闻,标题长为24------------------------------>
{dede:arclist typeid='' row=10 titlelen=24 orderby=click subday=30}
[field:textlink/]([field:pubdate function=strftime('%m-%d',@me)/]
{/dede:arclist}
<!------------------------------调用周点击排行:指定N个栏目的10条新闻,标题长为24------------------------------>
{dede:arclist typeid='' row=10 titlelen=24 orderby=click subday=7}
·[field:textlink/]([field:pubdate function=strftime('%m-%d',@me)/]
{/dede:arclist}
<!------------------------------调用日点击排行:指定N个栏目的10条新闻,标题长为24------------------------------>
{dede:arclist typeid='' row=10 titlelen=24 orderby=click subday=1}
·[field:textlink/]([field:pubdate function=strftime('%m-%d',@me)/])<br/>
{/dede:arclist}
<!------------------------------------调用指定N个栏目的10条新闻,标题长为40------------------------------------>
<DIV class=***>
<UL id=*****>
{dede:arclist typeid=1,2,3,4,5 titlelen='40' row="10"}
<LI><a href="[field:arcurl /]" target=_blank>[field:title /]</a></LI>
{/dede:arclist}
<!------调用一条带有缩略图的新闻,标题长为30,简介长为38,图片高宽为56,46,新闻按出版时间排序------>
<DIV class=***>
{dede:arclist typeid='' row=1 titlelen=30 orderby=pubdate type='image.' infolen=38 imgwidth='56' imgheight='46'}
[field:imglink/]<a href='[field:arcurl/]' target=_blank>[field:title/]</a>
<>
[field:info/]<A href='[field:arcurl/]' target=_blank>[全文]</A></P>
{/dede:arclist}
<!------------------------------------调用图片,图片下附带标题,图片横向显示六个------------------------------------>
<DIV class=***>
<H3 class=****><A class=***** href="#">图片资讯</A></H3>; <UL class=****** id=*******>
{dede:arclist typeid='' row=6 titlelen=24 orderby=rank imgwidth='150' imgheight='150' type='image'}
<LI class=*******>
<DIV>[field:imglink/]</DIV>
<>[field:textlink/]</P>
</LI>
{/dede:arclist}
</UL>
</DIV>
<!------------------------------------用户所处位置路径------------------------------------>)
您的位置: {dede:field name='position'/}
<!------------------------------------调用栏目导航------------------------------------------>
{dede:channel type='top' row='24'}
<a href='[field:typelink/]'>[field:typename/]</a>)
{/dede:channel}
<!------------------------------------调用栏目列表------------------------------------>
<DIV class=***><!--各分类列表-->
{dede:channelArtlist}
<DIV class=**** style="OVERFLOW: hidden; HEIGHT: 305px">
{dede:type}
<H3>
<STRONG><A href="[field:typelink /]" target="_blank">[field:typename /]</A></STRONG>
<A class=more href="[field:typelink /]" target="_blank">更多</A>
</H3>
{/dede:type}
<UL class=*****>
{dede:arclist row=10 titlelen=48 orderby=pubdate}
<LI>.
<CITE>[field:pubdate function='strftime("%m-%d",@me)'/] </CITE>
<A href="[field:arcurl /]" target="_blank">[field:title /]</A>
</LI>
{/dede:arclist}
</UL>
</DIV>
{/dede:channelArtlist}
</DIV>
<!------------------------------------调用文章列表------------------------------------>
<DIV class=***>
<H3 class=****><A class=***** href="#">信息列表</A></H3>
<UL class=****** id=bloglist>
{dede:list pagesize='10' titlelen=60}
<LI>
<DIV class=*******>
< class=********>
<STRONG>[field:postnum/]</STRONG><BR>条评论
</P> l
< class=*********>
<A href="[field:phpurl/]/feedback.php?arcID=[field:id/]" target=_blank>评论</A>
</P>
</DIV>
<H4>
[field:typelink function='str_replace("a ","a class=ulink ",@me)'/]
<a href="[field:arcurl/]" target=_blank>[field:title/]</a>
</H4>
< class=**********>
来源: [field:source/] [field:writer/]
发表于[field:pubdate function="GetDateTimeMK(@me)"/]
</P>
<>
<a href="[field:arcurl/]" target="_blank" alt="DEDECMS模板制造必备手册1[转]">
[field:litpic function="CkLitImageView(@me,120)"/]</a>
[field:description/]
<A href='[field:arcurl/]' target=_blank>[详细介绍...]</A>
</P>
B< class=**********>
人气: [field:click/]??
<SPAN class=**********>
<A
href="[field:phpurl/]/stow.php?arcID=[field:id/]">加入收藏</A>
</SPAN>
<A
onclick="showajaxdiv('[field:phpurl/]/recommend.php?arcID=[field:id/]', 400);"
href="[field:phpurl/]/recommend.php?arcID=[field:id/]">推荐给朋友</A>??
</P>
</LI>.
{/dede:list}
</UL>
<DIV class=***>
<DIV class=x****>
{dede:pagelist listsize='3' listitem=' index pre pageno next end option'/}</A>
</DIV>
</DIV>
-------------------------------------------------------
<!------------------------------------调用网站内部搜索------------------------------------>
<form id=searchform action="{dede:field name='phpurl'/}/search.php" name="formsearch" method=post>-
<input name=keyword type="text" id=keyword value="" size="16" maxlength="50" />
<BUTTON name=subjectsearch type=submit value="true">搜索</BUTTON>
<input name="imageField2" type="hidden" id="Field" value="Title">
</form>
?