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

搬瓦工:香港PCCW机房即将关闭;可免费升级至香港CN2 GIA;2核2G/1Gbps大带宽高端线路,89美元/年

搬瓦工怎么样?这几天收到搬瓦工发来的邮件,告知香港pccw机房(HKHK_1)即将关闭,这也不算是什么出乎意料的事情,反而他不关闭我倒觉得奇怪。因为目前搬瓦工香港cn2 GIA 机房和香港pccw机房价格、配置都一样,可以互相迁移,但是不管是速度还是延迟还是丢包率,搬瓦工香港PCCW机房都比不上香港cn2 gia 机房,所以不知道香港 PCCW 机房存在还有什么意义?关闭也是理所当然的事情。点击进...

ZJI-全场八折优惠,香港服务器 600元起,还有日本/美国/韩国服务器

ZJI怎么样?ZJI是一家成立于2011年的商家,原名维翔主机,主要从事独立服务器产品销售,目前主打中国香港、日本、美国独立服务器产品,是一个稳定、靠谱的老牌商家。详情如下:月付/年付优惠码:zji??下物理服务器/VDS/虚拟主机空间订单八折终身优惠(长期有效)一、ZJI官网点击直达香港葵湾特惠B型 CPU:E5-2650L核心:6核12线程内存:16GB硬盘:480GB SSD带宽:5Mbps...

SunthyCloud阿里云国际版分销商注册教程,即可PayPal信用卡分销商服务器

阿里云国际版注册认证教程-免绑卡-免实名买服务器安全、便宜、可靠、良心,支持人民币充值,提供代理折扣简介SunthyCloud成立于2015年,是阿里云国际版正规战略级渠道商,也是阿里云国际版最大的分销商,专业为全球企业客户提供阿里云国际版开户注册、认证、充值等服务,通过SunthyCloud开通阿里云国际版只需要一个邮箱,不需要PayPal信用卡就可以帮你开通、充值、新购、续费阿里云国际版,服务...

织梦内容管理系统为你推荐
css加载失败新浪微博网页显示CSS加载失败,网页格式混乱,但可以显示内容。用IE,搜狗,chrome浏览器都一样的问题。企业建网站一般中小型企业建立网站需要多少费用?多大的空间?腾讯官方电话腾讯公司电话多少徐州商标徐州松木家具前十名香盛圆排第几三五互联股票三五互联是什么股票无忧代理网什么是 ‘无忧在线’ 安全电脑保护专家?网站流量统计代码网站访问量统计代码 不要http://www.51.la/这样挂在别的网站下的 需要自己可以单独建个网页的那种, 谢谢无忧团购网F团团购网的F团(团团有品质)十项放心服务承诺上传软件有哪些可以下载软件的软件。怎么关闭qq空间图标QQ空间图标怎么灭
免费试用vps 秒解服务器 kdata rackspace 私人服务器 512av parseerror e蜗 申请个人网站 卡巴斯基是免费的吗 太原联通测速 php服务器 杭州电信 存储服务器 国外免费网盘 标准机柜 建站行业 ddos攻击教程 电脑主机响 租主机 更多