文章出處

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}

   

文章列表


不含病毒。www.avast.com
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()