调用最全kingcms标签(带实例)(Most full KingCMS tags (with examples))

kingcms  时间:2021-03-19  阅读:()

最全kingcms标签(带实例) Most full KingCMS tags (withexampl es) 

The KingCMS tag (with examples) .Txt is a mountain fox, you toldmewhat all, standing in the place nearest to you, look you smileto others, even if the heart is all the pain just to put yourevery act and every move a panoramic view. Dazzling white, letme understand what is pure damage. For you, whether you are anovice or veteran, you carefully read this article wasreproduced in the N KingCMS ASP tag detailed, you may be a greatdiscovery.

Although I spent a lot of time KINGCMS ASP version, but againJingxiaxinlai carefully, this article not only sigh for you.There were a lot of things that we didn't learn at first.The original text comes from: www. s-un. cn

Default labels for the system

{king:sitename/} site name

{king:siteurl/} website address

{king:now/} server current time

{king:cms/} output KingCMS support information, not buyauthorized website, must output this information.

{king:title/} title

{king:keywords/} keyword, you can use {king:keyword/}{king:description/} description

{king:inst/} installation path, if it is the root directoryinstallation, output: /

{king:page/} foreground path, such as: /page/

{king:guide name=the "current position"/} current navigationposition; the name value can replace the website name, the nameof the output specified.

{king:rnd/} 16 bit random number

{king:rnd4/} 4 bit random number

{king:rnd8/} 8 bit random number

{king:sql cmd= "select systemname from kingsystem;" anyposition/} SQL index database call on the data or any of a groupof data. 1) when used to /} closed, only the first output data;

2) when the {king:sql} . . . {/king} , cycle number of output data,specified by the SQL statement in top, more than 1000 of thedata cannot be read every time, for example, see below.Default attributes of the system

The length of the size attribute, which defines the length ofthe output, such as: {king:title size="10"/} , only the outputof the first 10 bytes, which Chinese output 5 words, 10 words

English output.

The left HTML code length attribute, similar to the sizeattribute, is used to qualify HTML code.

Mode type usage: {king:date mode= "yyyy-MM-dd hh:mm:ss" /}The mode attribute value yyyy, MM represents the year andmonth,and has the following attributes: complete year: yyyy;abbreviated year: YY; complete month: MM; abbreviated month:M; day and time parameter same month.

Code code formatting, such as: {king:title code= "HTMLEncode"/} , which replaces the output value in double quotes. Valueparameter has:

JavaScript or JS can be converted into code that can be calledin JavaScript

Convert xmlencode or XML into XML document compatible codeConvert URLEncode or URL to standard URL link code

Convert HTMLEncode or HTML to available code for HTML tagproperty

The URL keyword link parameters, such as: {king:keywords url="/page/article/search.asp? Query=" /} , when the URL value isto follow the corresponding link.

Width and height contain the tag specific attributes of image

characters, that is, the length and width of the image is set,and the aspjpeg component support is needed. Such as:{king:image width="100"height="80"/} , namely the output cutof the original image after the thumbnail of the address.Example of {king:sql/}

1) when /} closed

{king:sql cmd= "select sum (*) from kingart /} ;"

Returns all the number of articles

2) when {king:sql} . . . {/king} cyclic body

{king:sql cmd= "select top 10 arttitle, artpath, artdate fromkingart order by artId DESC;"}

<p>arttitle correspondence: (king:#0/) </p>

<p>artpath correspondence: (king:#1/) </p>

< p > artdate对应(king, # (2) < / p >

{/ king)

文章系统标签king: (type = "new" (= "10") , article标签开始

king (+ +) < a href = "(king, path)" (king: title size = "24"/ < / a > html循环输出部分

结束标签{/ king)

标签参数解析

调用文章类型*new最新文章related相关文章hot热门head头条

推荐commendlist列表(只能在文章列表页的模板里调用)sql直接输入sql调用文章,但必须要和sql属性配套使用,举例见下面

补充上来的king: + + + + +

作用是输出序号,从1开始,如果你输出10条信息,那么++输出的值就是1 - 10

* nu mb e r循环调用文章的数量,必须为数字

*"斑马线,必须为数字,如zebra="2"当第2、4、8等整除于zebra参数值的时候,输出1,其他输出0 [似乎只能用于列表页, 限在type =" list "的时候有效]

* order排序,默认值为desc,要按id顺序输出, 则设置值为asc(跟以前版本正好相反) 的时候有效限在type = "list";

* listid指定栏目调用,和老版本的union一样,支持多栏目同时调用,用英文逗号分开; listid有两个特定的值sub和current,sub是调用当前栏目下面栏目的文章, current是调用当前栏目下面的文章.

* li stname指定栏目名称调用, 多个栏目名称之间用英文逗号分开一个标签中, 只能用一个listid或listname,两个标签不能同时使用.keywords关键字属性调用和keywords属性里指定的关键字一致的文章*.

跳过指定数量的文章后输出*.

循环体内标签artid文章idlistid列表idl istname列表名称listpath列表路径

path文章路径title文章标题f rom来源

简述descriptionkeywords关键字author作者image缩略图路径,支持width和he ight属性

文章发布日期date

用法举例.king: (section)

< a href = "(king, path)" type = "hot" (king: title size = ""/ < / a >

{/ king)

内容页面标签artid文章idlistid列表id

title文章标题happy 内容f rom来源keywords关键字

简述descriptionauthor作者image缩略图路径,支持width和he ight属性path文章路径

导航guidepagelist文章分页nextpage下一页lastpage上一页i点击次数调用及页面访问统计

日期date

用法举例.

king: < h1 > {} < / h1 >) .

< img src = "{king: image width=" 200 "height =" 150 "/ /" / >type = "sql"用法

这个需要你懂得文章插件的数据结构及sql命令才可以正常使用.king: (type = "sql" (= "the artshow= 0 order by artid desc; }< a href = "(king, path)" (king, title v) < / a >

{/ king)

需要注意的是, 当type="sql"的时候, 必须有sql属性去设置sql代码,不然将调用最初加入的文章.

上面的例子中调用的是最新加入的草稿文章articlelist文章列表调用

(king, articlelist listid = "1. 2".

列表id (king, listid)

列表名称(king, listname)

列表地址(king, listpath)

{/ king)

Hostwinds:免费更换IP/优惠码美元VPS免费更换IP4.99,7月最新优惠码西雅图直连VPS

hostwinds怎么样?2021年7月最新 hostwinds 优惠码整理,Hostwinds 优惠套餐整理,Hostwinds 西雅图机房直连线路 VPS 推荐,目前最低仅需 $4.99 月付,并且可以免费更换 IP 地址。本文分享整理一下最新的 Hostwinds 优惠套餐,包括托管型 VPS、无托管型 VPS、Linux VPS、Windows VPS 等多种套餐。目前 Hostwinds...

创梦网络-新上雅安电信200G防护值内死扛,无视CC攻击,E5 32核高配/32G内存/1TB SSD/100Mbps独享物理机,原价1299,年未上新促销6折,仅779.4/月,续费同价

创梦网络怎么样,创梦网络公司位于四川省达州市,属于四川本地企业,资质齐全,IDC/ISP均有,从创梦网络这边租的服务器均可以****,属于一手资源,高防机柜、大带宽、高防IP业务,另外创梦网络近期还会上线四川眉山联通、广东优化线路高防机柜,CN2专线相关业务。广东电信大带宽近期可以预约机柜了,成都优化线路,机柜租用、服务器云服务器租用,适合建站做游戏,不须要在套CDN,全国访问快,直连省骨干,大网...

[6.18]DogYun:充100送10元,态云7折,经典云8折,独立服务器月省100元,幸运大转盘最高5折

DogYun是一家2019年成立的国人主机商,提供VPS和独立服务器租用等,数据中心包括中国香港、美国洛杉矶、日本、韩国、德国、荷兰等,其中VPS包括常规VPS(经典云)和按小时计费VPS(动态云),使用自行开发的面板和管理系统,支持自定义配置,动态云各个硬件独立按小时计费,带宽按照用户使用量计费(不使用不计费)或者购买流量包,线路也可以自行切换。目前商家发布了6.18促销方案,新购动态云7折,经...

kingcms为你推荐
flashwind谁能教我怎么在360里下载个flashwind?新iphone也将禁售iPhone停用怎么解锁 三种处理方法详解支付宝调整还款日蚂蚁借呗还款日能改吗邮件eset密码cuteftp徐州商标徐州松木家具前十名香盛圆排第几瞄准的拼音碰的拼音是什么佛山海虹海虹好吃吗,我从来没吃过温州都市报招聘在温州哪里好找工作?团购程序团购的流程有哪几种模式
国内vps 代理域名备案 漂亮qq空间 virpus kvmla 缓存服务器 国外私服 香港新世界电讯 godaddy优惠券 创宇云 京东云擎 警告本网站 上海域名 vip购优汇 有奖调查 个人免费邮箱 万网空间 免费主页空间 万网服务器 xshell5注册码 更多