内容管理系统织梦内容管理系统模板标签代码参考(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 (with 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>

Image = <img, src='picname' , border='0' , width=' imgwidth' ,height=' imgheight'>

Field call method: [field:varname/]

Such as:

{dede:arclist infolen=' 100' }

[field:textlink/]

<br>

[field: info/]

<br>

{/dede:arclist}

Note: a form of bottom template Field implementation is weavingMark, therefore support the use of PHP syntax, Functionextension function

Such as: to the contents of the day issued with (New) logo[field:senddate runphp='yes' ]

$ntime = time () ;

$oneday = 3600 * 24;

If ( ($ntime - @me) <$oneday) @me = <font color='red'> (New)</font>";

Else @me ="";

[/field:senddate]

[Field markers]

Function Description: used to obtain the field values of aspecific column or file, and the common environment variable

values

Scope of application: cover template, list template, documentt emp lat e

(1) bas ic grammar

The {dede:field name='field name'/}

(2) system assignment of field

Plate templates: phpurl, indexurl, indexname, templeturl,memberurl, powerby, webname, specurl

List templates: position, title, phpurl, templeturl, memberurl,dede_arctype, powerby, indexurl, indexname, specurl, columnfields, all fields

Among them, position is "column one, column two" such form oflink, title is for this kind of caption

Document templates: pos ition, phpurl, templeturl, memberurl,powerby, indexurl, indexname, , specurl, and ID (with ID, aid)

(3) all content fields for the document

Files, dede_archives tables, and all fields of an attachedt ab l e.

[Channel markers]

Function Description: used to obtain column list

Scope of application: cover template, list template, documentt emp lat e

(1) bas ic grammar

{dede:channel row=' 'type=' ' }

Custom style template (InnerText)

{/dede:channel}

(2) attributes

"[1] row='numbers" means the number of records to be obtained(common use at a certain level column, default is 8)

[2], type = top, sun/son, self

Type='top' stands for top columns

Type=' self' stands for columns at the same level

The latter two attributes must be used in the list template.

(3) underlying template variables

ID, typename, typedir, typelink (only the URL of the column)

Cases:

{dede:channel type='top' }

<a href=' [field:typelink /]' >[f ield:typename/]</a>

{/dede:channel}

Note: in cases where no typeID is specified, the type tag isrelated to the template' s environment. For example, when thetemplate is generated in column 1, then type=' son'representsall subclasses of column 1

[Type tags] alias Onetype

Function Description: a link indicating a single columnspecified

Scope of application: cover template, list template, documentt emp lat e

(1) syntax, {dede:type, typeid=' ' } {/dede:type}

(2) attribute typeid=' column ID'

(3) underlying template variables

T ype name,

Typelink (only the URL of the column)

ZJI(月付450元),香港华为云线路服务器、E3服务器起

ZJI发布了9月份促销信息,针对香港华为云线路物理服务器华为一型提供立减300元优惠码,优惠后香港华为一型月付仅450元起。ZJI是原来Wordpress圈知名主机商家:维翔主机,成立于2011年,2018年9月更名为ZJI,提供中国香港、台湾、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册等业务,商家所选数据中心均为国内访问质量高的机房和线路,比如香港阿里云、华为...

VirtVPS抗投诉瑞士VPS上线10美元/月

专心做抗投诉服务器的VirtVPS上线瑞士机房,看中的就是瑞士对隐私的保护,有需要欧洲抗投诉VPS的朋友不要错过了。VirtVPS这次上新的瑞士服务器采用E-2276G处理器,Windows/Linux操作系统可选。VirtVPS成立于2018年,主营荷兰、芬兰、德国、英国机房的离岸虚拟主机托管、VPS、独立服务器、游戏服务器和外汇服务器业务。VirtVPS 提供世界上最全面的安全、完全受保护和私...

Hostodo:4款便宜美国vps七折优惠低至$13/年;NVMe阵列1Gbps带宽,免费DirectAdmin授权

hostodo怎么样?快到了7月4日美国独立日,hostodo现在推出了VPS大促销活动,提供4款Hostodo美国独立日活动便宜VPS,相当于7折,低至$13/年,续费同价。Hostodo美国独立日活动结束时间不定,活动机售完即止。Hostodo商家支持加密数字货币、信用卡、PayPal、支付宝、银联等付款。Hostodo美国独立日活动VPS基于KVM虚拟,NVMe阵列,1Gbps带宽,自带一个...

织梦内容管理系统为你推荐
phpweb破解painter破解版中文版企业推广最常见的推广方式有哪些重庆电信断网为什么电信宽带突然断网了flashftp下载《蔓蔓青萝(全)》.TXT_微盘下载ipad代理ipad在哪里买是正品?台北市cuteftp电子商务世界世界前十大电子商务企业名字申请400电话400电话如何办理?kingcmsKingCMS 开始该则呢么设置呢?powerbydedecms如何去掉dedecms自带广告以及Power by dedecms
如何注册域名 万网域名解析 域名解析文件 高防dns 阿里云邮箱登陆首页 edis mach 国外bt 论坛空间 中国电信测速112 创梦 域名接入 adroit 免费测手机号 能外链的相册 服务器硬件防火墙 免费私人服务器 免费的asp空间 ebay注册 广州虚拟主机 更多