SiteServer CMS 标签总结

1.   显示内容列表序号:{content.ItemIndex}    栏目列表序号:{channel.ItemIndex}
 
2.   <stl:contents where=“zbsj like '%'+cast(DATEPART(mm,date) as varchar(10))+’-‘+cast(DATEPART(dd,date) as         varchar(10))" isDynamic="true" >
 
3.         yyyy-mm-dd HH:MM 24小时制
 
4.         STL 地址通配符:使用通配符(“~”)来表示应用程序的根目录,使用通配符(“@”)来表示当前站点的域名地址
 
5.        判断当前栏目名称是否为"栏目1"或"栏目2"
           当前栏目不是栏目1或栏目2
           <stl:iftestType="ChannelName"testOperate="In"testValue="栏目1,栏目2">
 
           <stl:successTemplate><p>当前栏目是栏目1或栏目2</p></stl:successTemplate>
 
           <stl:failureTemplate><p>当前栏目不是栏目1或栏目2</p></stl:failureTemplate>
 
           </stl:if>
 
6.        使用实体标签{Channel.TItle}在内容列表里显示内容标题所在的栏目
 
7.        调用图片:<stl:content type="imageurl" no="2"></stl:content>
 
8.       统计评论数:<stl:count type="Comments"></stl:count>
          统计栏目数:<stl:count type="Channels"></stl:count>
          统计内容数:<stl:count type="Contents"></stl:count>
          统计下载次数:<stl:count type="Downloads"></stl:count>
 
9.  3.6.5WCM调用栏目虚拟字段使用{Channel.top1.虚拟字段}调用不出来,需要使用STL标签调用
 
10.     调用Logo: <stl:value type="Logo"><img src="{Content.ImageUrl}" width="168" height="82"></stl:value>
 
11.   显示当前日期:<stl:value type="Date"></stl:value>

12.
<stl:each type="photo" isImage="true">
                <li>
                  <p><stl:photo type="description"></stl:photo></p>
                  <stl:photo type="MiddleUrl"></stl:photo>
                </li>
              </stl:each>
 
13.  统计下载量
      <stl:sqlContents connectionStringName="ConnectionString">
      <stl:queryString>
      select sum(countnum) as xzl from bairong_Count where CountType='download'
      </stl:queryString>
      {sql.xzl}
      </stl:sqlContents>
 
14.  整网下载量。
           <stl:sqlContents connectionStringName="ConnectionString" isDynamic="true"> <stl:queryString> select sum(countnum) as xzl from bairong_Count where                  CountType='download' </stl:queryString>{sql.xzl}</stl:sqlContents>
 
15.  判断是否是当前时间,testValue="now"
 
16.  t打头的是缩略图,不带t的是原图,不勾选缩略图默认使用的是原图。
 
17.  多字段排序:order by="isTop,AddDate"
 

18.  调用添加者:{Content.AddUserName}

   
原文地址:https://www.cnblogs.com/archive/p/5259975.html