织梦内容管理系统模板标签代码参考Lwash template tag codereference
The lwash template tag code reference
-----------------------------------------------------------
[Arclist markers]
This marker is DedeCms a marker of the most commonly used, alsocalled a free list of markers, including hotart, coolart,likeart, artlist, imglist, imginfolist, specart, autolist ofthese markers are labeled with different attributes is an aliasdefined by the tag extending out of the.
Function Description: gets the specified list of documentsScope of application: cover template, list template, documentt emp lat e
Basi c grammar:
{dede:arclistinfolen=' '
Imgwidth=' ' , imgheight=' ' , l isttype=' ' , orderby=' ' ,keyword=' ' }
Bottom template (InnerText)
{/dede:arclist}
Attribute description:
[1] typeid=' ' stands for column ID, which is not specified inlist templates and file templates, and allows multiple columnsto be represented separately in the cover template;
[2] row=' ' indicates the total number of returned documentlists;
[3] col=' 'represents how many columns are displayed (defaultis a single column) ;
[4] titlelen=' ' stands for Title length;
[5] infolen=' ' indicates the length of the content description;
[6] imgwidth=' ' stands for thumbnail width;
[7] imgheight=' ' stands for thumbnail height;
[8] type=' 'represents the file type, where null values do notuse this property or type='all' as plain documents
Section type='commend' , recommended document, equivalent to{dede:coolart} {/dede:coolart}
The type=' image' , said the document must contain thumbnailimages, equivalent to {dede: imglist} {/dede:imglist} ,
{dede:imginfolist} {/dede: imginfolist}
The type=' spec' , said the topic, equivalent to mark
{dede:specart} {/dede:specart}
The above property values can be used together, such as:type='commend image'represents the recommended picturedocument
"[9] orderby=' ' "means sorting. The default value is senddate,arranged by publication time.
The orderby='hot'or orderby='click' click the number ofpermutations
Orderby='pubdate' , according to the publication timearrangement (that is allowed to change the reception timevalue)
Orderby=' sortrank' , sorted by the new sorting level (if youwant to use the articles using this property)
Orderby=' id' , according to the ID ranking
Orderby='postnum' , according to the number of sort commentsThe list of documents, orderby='rand'random access to thespecified conditions
The [10] orderway=' 'value is desc or ASC, which specifieswhether the sort is descending or forward sort, and defaultsto descending order.
[11] keyword=' 'represents a list of documents containing thespecified keyword, and multiple keywords are separated by """" "
[12] channelid=' 'represents a specific channel model, ID,built-in channels: -1, articles (1) , Atlas (2) , Flash (4) ,software (3)
[13] limit=' start, ' said the end of record of limited scope,the row attribute must be equal to the "end- start", the limitstatement MySQL is composed of 0 start, such as "limit 0,5" thatis the first five record, "limit 5, 5" is represented by fifthrecords, remove five records, use the this attribute, the rowattribute is invalid.
[14] att='values' represent custom attribute values
"[15] subday='days" indicates documents within amatter of days,usually used to get hot documents, recommended documents, hotcomment documents for a specified number of days, and so on"[16] partsort=' " is the number of rows in the column thatindicates the number of all columns in the parent columnautomatically. When ID is marked
"{dede:autolist} {/dede:autolist}", this property is used.Bottom template field:
ID (with ID) , title, iscommend, color, typeID, ismake,description (the same info) , writer, shorttitle, memberid
PubDate, senddate, arcrank, click, litpic (the same picname) ,typedir, typename,
Arcurl (with filename) , typeurl, stime (PubDate "0000-00-00"f ormat) ,
Textlink, typelink, imglink, image
Among them:
Textlink = <a href='arcurl'>title</a>
Typelink = <a href='typeurl' >typename</a>
Imgl ink = <a, href='arcurl' ><img, src='picname' , border='0' ,width=' imgwidth' , height=' imgheight' ></a>
图像 <img src= 'picname边界= 0”width= ' imgwidth高度=' imgheight” >
字段调用方法 [领域 v arname / ]
如
{迪迪 arclist infolen = 100” }
[领域 textlink / ]
<br>
[字段信息/ ]
<br>
{ /迪迪 arclist }
注底层模板里的场实现也是织梦标记的一种形式 因此支持使用P HP语法功能扩展等功能
如给当天发布的内容加上新标志
[领域 senddate runphp = “是” ]
运行时间= time()美元
一天= 3600 * 24美元
如果$N倍@我<一美元@我= “<字体颜色=’ > 新</字体>” 其他@ @ “=”
[领域 senddate ]
【场标记】
功能说明用于获取特定栏目或档桉的字段值及常用的环境变量值适用范围封面模板、列表模板、文档模板
1基本语法
{迪迪字段名称= “字段名/ }
2系统分配的场
板块模板 phpurl i ndexur l i ndexname templ eturl memberur l权力 webname specurl
列表模板位置、标题、 phpurl t emp letur l memberurl权力indexurl indexname specurl栏目表dede_arctype的所有字段其中位置为”栏目一>栏目二”这样形式的链接标题则为这种形式的标题
文档模板位置 phpurl templ eturlmemberur l权力 i ndexur lindexname specurl ID 同ID援助
3文档所有内容字段
档案dede_archives表和附加表的所有字段。
【通道标记】
功能说明用于获取栏目列表
适用范围封面模板、列表模板、文档模板
1基本语法
{迪迪通道行= “type=” }
自定义样式模板InnerText
{ /迪迪通道}
2属性
[ 1 ]行= “数字”表示获取记录的条数通用在某级栏目太多的时候使用默认是8
[ 2 ]类型=顶子/子 自
类型= ' '表示顶级栏目
类型=孩子的或'太阳'表示下级栏目
类型=自 “表示同级栏目
其中后两个属性必须在列表模板中使用。
3底层模板变量
ID typename typedir typelink 仅表示栏目的网址
例
{迪迪通道式= ' ” }
< a href = “[领域 typelink / ] “> [领域 typename / ] </a>{ /迪迪通道}
注在没有指定typeid的情况下型标记与模板的环境有关如
模板生成到栏目一那么型=孩子的就表示栏目一的所有子类【型标记】别名类型
功能说明表示指定的单个栏目的链接
适用范围封面模板、列表模板、文档模板
1语法{迪迪型typeid =” } { /迪迪型}
2属性typeid = “栏目ID
3底层模板变量typename typel ink 仅表示栏目的网址
【autochannel标记】
功能说明表示指定排序位置的单个栏目的链接
适用范围封面模板、列表模板、文档模板
1语法{迪迪autochannel partsort=” } {/迪迪autochannel }2属性partsort = “栏目所在的排序位置”
3底层模板变量typename typel ink 仅表示栏目的网址
【my tag标记】
小白云是一家国人自营的企业IDC,主营国内外VPS,致力于让每一个用户都能轻松、快速、经济地享受高端的服务,成立于2019年,拥有国内大带宽高防御的特点,专注于DDoS/CC等攻击的防护;海外线路精选纯CN2线路,以确保用户体验的首选线路,商家线上多名客服一对一解决处理用户的问题,提供7*24无人全自动化服务。商家承诺绝不超开,以用户体验为中心为用提供服务,一直坚持主打以产品质量用户体验性以及高效...
我们一般的站长或者企业服务器配置WEB环境会用到免费版本的宝塔面板。但是如果我们需要较多的付费插件扩展,或者是有需要企业功能应用的,短期来说我们可能选择按件按月付费的比较好,但是如果我们长期使用的话,有些网友认为选择宝塔面板企业版或者专业版是比较划算的。这样在年中大促618的时候,我们也可以看到宝塔面板也有发布促销活动。企业版年付899元,专业版永久授权1888元起步。对于有需要的网友来说,还是值...
我们在去年12月分享过Hosteons新上AMD Ryzen9 3900X CPU及DDR4内存、NVMe硬盘的高性能VPS产品的消息,目前商家再次发布了产品更新信息,暂停新开100M带宽KVM套餐,新订单转而升级为新的Budget KVM VPS(SSD)系列,带宽为1Gbps端口,且配置大幅升级,目前100M带宽仅保留OpenVZ架构产品可新订购,所有原有主机不变,用户一直续费一直可用。Bud...