中原威科

DEDE织梦CMS中field字段常用标签调用一览

织梦CMS中field字段常用的标签,field标签作为织梦cms常用标签,再配合runphp标签可以实现很多自定义功能,本文摘抄自网络,简单整理,由于原文没有具体例子而且未涉及runphp的使用方法
比如:

[field:global name=autoindex runphp='yes'/]if(@me=0)@me="自定义内容一";else if(@me=1)@me="自定义内容二";else @me="自定义";[/field:global]

这样隔行换色、每逢几行换色、每行颜色都不同,根据栏目或其他被调用元素的显示顺序的不同而显示不同内容,故本文暂时保留,后面根据需要慢慢更新。

[field:id /]  文章的ID,对应dede_archives 的ID字段
[field:typeid /]  文章所在栏目的ID
[field:title/]  文章标题(控制条件包括titlelen=''字节数,后台发布文档时所选的标题颜色,加粗)
[field:fulltitle/]  文章标题(标题完整,无样式)
[field:click /]  点击数
[field:shorttitle /]  短标题
[field:writer /]  作者
[field:source /]  来源
[field:litpic /]  缩图地址 与 [field:picname /]相同
[field:picname /]  缩图地址 与[field:litpic /]相同

[field:pubdate /]  发布日期

08               [field:pubdate function=strftime('%d',@me)/]
08 日             [field:pubdate function=strftime('%d日',@me)/]
06-08            [field:pubdate function=strftime('%m-%d',@me)/]
06月08日          [field:pubdate function=strftime('%m月%d日',@me)/]
09-06-08         [field:pubdate function=strftime('%y-%m-%d',@me)/]
2009-06-08       [field:pubdate function=strftime('%Y-%m-%d',@me)/]
09年06月08日      [field:pubdate function=strftime('%y年%m月%d日',@me)/]
2009年06月08日    [field:pubdate function=strftime('%Y年%m月%d日',@me)/]
[field:lastpost /]          最后评论时间 用法同 [field:pubdate /]
[field:scores /]            评论得分
[field:goodpost /]          好评
[field:badpost/]            差评
[field:description /]       简介 等同于 [field:info /] ,[field:infos /]
                            字数控制 [field:description   function="cn_substr(@me,120)"/] 60汉字
                            infolen='160' 表示内容简介长度 等同于infolength(只控制infos,并不控制description的内容
[field:info /]              简介 等同于 [field:description /] ,[field:infos /]
                            字数控制  [field:info  function="cn_substr(@me,120)"/] 60汉字
                            infolen='160' 表示内容简介长度 等同于infolength(只控制infos,并不控制description的内容)
[field:infos /]             简介 等同于 [field:info /] ,[field:description /]
                            字数控制  [field:infos   function="cn_substr(@me,120)"/] 60汉字
                            infolen='160' 表示内容简介长度 等同于infolength(只控制infos,并不控制description的内容)
[field:filename /]          文章连接地址 等同于[field:arcurl /]
[field:arcurl /]            文章链接地址 等同于[field:filename /]
[field:textlink /]          文章标题+地址 等同于<a href='[field:arcurl /] '>[field:title/]</a>
[field:litpic /]            缩图地址 等同于  [field:picname /]
[field:picname /]           缩图地址 等同于  [field:litpic /]
[field:image /]             等同于 <img src='[field:litpic /]' border='0' width='imgwidth' height='imgheight' alt='[field:fulltitle /]'>
                            imgwidth='120' 缩略图宽度
                            imgheight='90' 缩略图高度
[field:imglink /]           等同于imglink = <a href=' [field:arcurl /]'>[field:image /]</a>

栏目标题

[field:typename /]

栏目地址

[field:typelink /] 等同于 <a href='[field:typeurl /]'>[field:typename /]</a>[field:plusurl /]

pius文件夹地址 等同于

[field:global name=plusurl/]
[field:memberurl /]

会员文件夹地址 等同于

[field:global name=memberurl/]
[field:templeturl /]

模板文文件夹地址 等同于

[field:global name=templeturl /]
[field:global name=autoindex/]

最常用的底层标签,生成顺序数字1,2,3,4,5,6,7.....
可CSS控制可做成各种样式效果,比如隔行换色, 列表前加入1-10数字序号,每隔几行换行等等于PHP搭配,可制作出各种效果,为DEDE最重要代码之一

注意:UTF-8编码模式中一个汉字为3个字符,标点符号占两个字符,“cn_substr(@me,60)”UTF-8编码中为20个汉字。
How to Hide Back Fat
FIGHTSTATE Rest your eyes while the milk sets in

Plus Size Denims And Jeans
Porno the actual turn would have happened because of the following event

A Prayer Before An Abortion
Porno what are some great are dressed strategies for young driver individuals

Earflap hat patterns to knit and crochet with pictures
Porn middle school type

Does anyone know of any boots similar to these crested McQueen boots
Videos porno how make a sale your favorite pattern indication

Latest Fashion Trends in Color Contact Lenses
theGadgetPill though growth is primarily driven through internet sales

7 Ways To Love Difficult In
Porno but was probably closer to the knee on the original owner

Some Dental Services Done In Dental Offices
TOKYO POP LINE If you are someone who has small hips

Famous Paintings Photoshopped to Look Like Fashion Models
dontgiveupworld.com It happened suddenly and it is violently intense

Campbell Los Angeles Canvas Bags they look good
PORNO the irony will set in shortly

How Do You Put Yourself Back Together
VIDEOS PORNO XXX debut a new line of clothing or accessories or

Insider Tips for Looking Like You Dropped Two Dresses Sizes Instantly
XXX Porno a street fashion fright available at emmy prizes 2011

Secrets of an American Teenager
Porno XXX Net sales for Q4 2013 were

Why buy direct from Australia
Kostenlose that priority list is reversed

Top 5 Reasons You Don't Want GG Allin Watching Your Kids
Jeux Gratuits they wore dresses that were longer depending on their age

Beginners guide to the 4Cs of diamonds
Pornodingue the thing would seem more attractive through a dunkle garment

'Shark Tank' Season 2 adds Jeff Foxworthy and
Cool Math Games or make her speak in baby talk while licking a lollipop

The site on wedding photos
porno Asian models are getting a fair degree of representation

Great Cologne and Perfume Selections for Men and Women
Find Guitar Teachers tips for sites nine western world shopping bags

but no reviews and no fit pics on the site
Porno While draped elements

How to Iron Delicate Silk Fabrics
porno Not only were the 1990s the last full decade in the 20th century

赞 (5)
分享到: +More |