模板织梦内容管理系统模板标签代码参考(Lwash template tag code reference)

织梦内容管理系统  时间:2021-03-20  阅读:()

织梦内容管理系统模板标签代码参考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 eturlmemberur l权力 i ndexur lindexname 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标记】

久久网云-目前最便宜的国内,香港,美国,日本VPS云服务器19.9元/月起,三网CN2,2天内不满意可以更换其他机房机器,IP免费更换!。

久久网云怎么样?久久网云好不好?久久网云是一家成立于2017年的主机服务商,致力于为用户提供高性价比稳定快速的主机托管服务,久久网云目前提供有美国免费主机、香港主机、韩国服务器、香港服务器、美国云服务器,香港荃湾CN2弹性云服务器。专注为个人开发者用户,中小型,大型企业用户提供一站式核心网络云端服务部署,促使用户云端部署化简为零,轻松快捷运用云计算!多年云计算领域服务经验,遍布亚太地区的海量节点为...

spinservers($89/月),圣何塞10Gbps带宽服务器,达拉斯10Gbps服务器

spinservers是Majestic Hosting Solutions LLC旗下站点,主要提供国外服务器租用和Hybrid Dedicated等产品的商家,数据中心包括美国达拉斯和圣何塞机房,机器一般10Gbps端口带宽,高配置硬件,支持使用PayPal、信用卡、支付宝或者微信等付款方式。目前,商家针对部分服务器提供优惠码,优惠后达拉斯机房服务器最低每月89美元起,圣何塞机房服务器最低每月...

Webhosting24:€15/年-AMD Ryzen/512MB/10GB/2TB/纽约&日本&新加坡等机房

Webhosting24是一家始于2001年的意大利商家,提供的产品包括虚拟主机、VPS、独立服务器等,可选数机房包括美国洛杉矶、迈阿密、纽约、德国慕尼黑、日本、新加坡、澳大利亚悉尼等。商家VPS主机采用AMD Ryzen 9 5950X CPU,NVMe磁盘,基于KVM架构,德国机房不限制流量,网站采用欧元计费,最低年付15欧元起。这里以美国机房为例,分享几款套餐配置信息。CPU:1core内存...

织梦内容管理系统为你推荐
大学生创新实验计划企业邮局系统什么是企业邮局?servererrorunknow server error什么意思 怎么解决搜狗360因为我做百度,搜狗,360,神马竞价推广已经有一年多了,所以请问下,网上有哪些平台可以接竞价的单呢?重庆电信断网为什么电信宽带突然断网了googleprGoogle PR的值是6.这个是什么意思?中国企业信息网全国企业信息公示系统怎么查询企业信息360邮箱免费注册360账号-电子邮箱怎么填写?波音737起飞爆胎美国737MAX又紧急迫降,为什么它还在飞?什么是支付宝支付宝是什么意思?
如何申请域名 上海域名注册 东莞服务器租用 北京主机租用 域名服务器的作用 泛域名解析 淘宝二级域名 阿云浏览器 便宜域名 全球付 java主机 私服服务器 shopex空间 ssh帐号 韩国网名大全 godaddy域名证书 e蜗 个人域名 域名转接 稳定免费空间 更多