内容管理系统织梦内容管理系统模板标签代码参考

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

织梦内容管理系统模板标签代码参考

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=' ' ,k eyword=' ' }

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 the

specified 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,

The end of the ' said record of limited scope, the row attributemust be equal to the "end - start", the limit statement MySQLis composed of 0 start, such as "limit 0, 5" that is the firstfive record, "limit 5, 5" is represented by fifth records,remove the five record, using this attribute the row propertywill be 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>

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 variablevalues

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, i ndexur l, indexname,

Specurl, 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

Typename, typelink (only the URL of the column)

[Autochannel markers]

触摸云 26元/月 ,美国200G高防云服务器

触摸云触摸云(cmzi.com),国人商家,有IDC/ISP正规资质,主营香港线路VPS、物理机等产品。本次为大家带上的是美国高防2区的套餐。去程普通线路,回程cn2 gia,均衡防御速度与防御,防御值为200G,无视UDP攻击,可选择性是否开启CC防御策略,超过峰值黑洞1-2小时。最低套餐20M起,多数套餐为50M,适合有防御型建站需求使用。美国高防2区 弹性云[大宽带]· 配置:1-16核· ...

RackNerd:美国便宜VPS,洛杉矶DC-02/纽约/芝加哥机房,4TB月流量套餐16.55美元/年

racknerd怎么样?racknerd美国便宜vps又开启促销模式了,机房优秀,有洛杉矶DC-02、纽约、芝加哥机房可选,最低配置4TB月流量套餐16.55美元/年,此外商家之前推出的最便宜的9.49美元/年套餐也补货上架,同时RackNerd美国AMD VPS套餐最低才14.18美元/年,是全网最便宜的AMD VPS套餐!RackNerd主要经营美国圣何塞、洛杉矶、达拉斯、芝加哥、亚特兰大、新...

月神科技 国内上新成都高防 全场八折促销续费同价!

月神科技是由江西月神科技有限公司运营的一家自营云产品的IDC服务商,提供香港安畅、香港沙田、美国CERA、成都电信等机房资源,月神科技有自己的用户群和拥有创宇认证,并且也有电商企业将业务架设在月神科技的平台上。本次带来的是全场八折促销,续费同价。并且上新了国内成都高防服务器,单机100G集群1.2T真实防御,上层屏蔽UDP,可定制CC策略。非常适合网站用户。官方网站:https://www.ysi...

织梦内容管理系统为你推荐
yw372:Com我是YW,ZX了吗iprouteip route-static 192.168.1.0 255.255.255.0 3.3.3.2什么意思建企业网站想建立一个企业网站360邮箱免费注册360账号-电子邮箱怎么填写?163yeah网易的163,126,yeah邮箱有什么不同?sqlserver数据库SQL SERVER数据库是可以做什么用的?文档下载如何 下载 文库文件泉州商标注册泉州本地商标注册要怎么注册?具体流程是什么?123456hd手机卡上出现符号hd怎么取消工具条有什么工具条比较好
香港加速器 java主机 mediafire下载 tightvnc 双十一秒杀 免费防火墙 1g空间 微软服务器操作系统 万网空间购买 789电视剧 免费私人服务器 广州虚拟主机 免费asp空间申请 atom处理器 国内空间 杭州电信宽带 时间服务器 alexa世界排名 美国vpn代理 apache启动失败 更多