dedecms全局标签:
channel |频道标签, 功用:用于猎取栏目列表(全局运用)
基础语法:
{dede:channel type='top' row='8'} <a href=''[field:typelink/]"> [field:typename/] </a> {/dede:channel}
row = '1'分多少列显现(默以为单列)
type = 'son | sun' son示意下级栏目,self示意同级栏目,top顶级栏目
field|经常使用变量,功用:用于猎取特定栏目或许档案的字段值及经常使用的环境变量值(全局运用)
基础语法:
{dede:field name='字段名'/}
arclist|文档列表,功用:猎取指定文档列表(全局运用)
基础语法:
{dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}} <a href="[field:arcurl/]">[field:title/]</a> {/dede:arclist}
row='10' 返回文档列表总数
typeid='' 栏目ID,在列表模板和档案模板中平常不需要指定,在首页模板中许可用","离开示意多个栏目;
getall='1' 在没有指定这属性的情况下,在栏目页、文章页模板,不会猎取以","离开的多个栏目的下级子类
titlelen = '30' 题目长度 等同于titlelength
infolen='160' 示意内容简介长度 等同于infolength
imgwidth='120' 缩略图宽度
imgheight='90' 缩略图高度
listtype='all' 栏目范例 image含有缩略图 commend引荐
orderby='sortrank' 文档排序体式格局
§ orderby='hot' 或 orderby='click' 示意按点击数分列
§ orderby='sortrank' 或 orderby='pubdate' 按出书时候分列
§ orderby='near'
§ orderby=='lastpost' 按末了批评时候
§ orderby=='scores' 按得分排序
§ orderby='id' 按文章ID排序
§ orderby='rand' 随机取得指定前提的文档列表
keyword='' 含有指定关键字的文档列表,多个关键字用","分
底层模板字段:
ID(同 id),typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer, source,litpic(同picname),pubdate,senddate,mid, lastpost,scores,goodpost,badpost,notpost, description(同infos),filename, image, imglink, fulltitle, textlink, typelink,plusurl, memberurl, templeturl, stime(pubdate 的"0000-00-00"花样)
个中:
textlink = <a href='arcurl'>title</a> typelink = <a href='typeurl'>typename</a> imglink = <a href='arcurl'><img src='picname' border='0' width='imgwidth' height='imgheight'></a> image = <img src='picname' border='0' width='imgwidth' height='imgheight' alt=’titile’>
字段挪用要领:[field:varname/]
如:
{dede:arclist infolen='100'} [field:textlink/] <br> [field:infos/] <br> {/dede:arclist}
更多DedeCMS相干技术文章,请接见DedeCMS教程栏目举行进修!
以上就是dedecms的全局标签有哪些的细致内容,更多请关注ki4网别的相干文章!