dedecms的全局标签有哪些
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的全局标签有哪些的详细内容,更多请关注编程之家其它相关文章! (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |