?? 多模型通用內容信息列表_普通式.config
字號:
<root>
<LabelType>列表標簽</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>parentid</name>
<default>1</default>
<intro>父欄目ID</intro>
</attributes>
<attributes>
<name>arrnodeid</name>
<default>0</default>
<intro>欄目ID數組</intro>
</attributes>
<attributes>
<name>includechild</name>
<default>false</default>
<intro>是否包含子欄目</intro>
</attributes>
<attributes>
<name>specialid</name>
<default>0</default>
<intro>專題ID</intro>
</attributes>
<attributes>
<name>urltype</name>
<default>0</default>
<intro>鏈接地址類型</intro>
</attributes>
<attributes>
<name>shownum</name>
<default>10</default>
<intro>文章數</intro>
</attributes>
<attributes>
<name>ishot</name>
<default>false</default>
<intro>是否是熱門文章</intro>
</attributes>
<LabelSqlString>SELECT TOP 1 NodeID,NodeName FROM PE_Nodes WHERE NodeID=@parentid</LabelSqlString>
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:transform
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:pe="labelproc"
exclude-result-prefixes="pe"
>
<xsl:output method="html" />
<!-- 定義參數 -->
<xsl:param name="parentid"/>
<xsl:param name="arrnodeid"/>
<xsl:param name="includechild"/>
<xsl:param name="specialid"/>
<xsl:param name="urltype"/>
<xsl:param name="shownum"/>
<xsl:param name="ishot"/>
<xsl:param name="iselite"/>
<xsl:param name="inputername"/>
<xsl:param name="datenum"/>
<xsl:param name="ordertype"/>
<xsl:param name="titlelen"/>
<xsl:param name="shownodename"/>
<xsl:param name="showpropertytype"/>
<xsl:param name="showincludepic"/>
<xsl:param name="showauthor"/>
<xsl:param name="showdatetype"/>
<xsl:param name="showhits"/>
<xsl:param name="showhotsign"/>
<xsl:param name="shownewsign"/>
<xsl:param name="showtips"/>
<xsl:param name="showcommentlink"/>
<xsl:param name="opentype"/>
<xsl:param name="cols"/>
<xsl:param name="hits"/>
<xsl:param name="elitelevel"/>
<xsl:template match="/">
<xsl:choose>
<!-- 指定的欄目沒有內容或顯示所有欄目內容 -->
<xsl:when test="count(/NewDataSet/Table) = 0">
<xsl:choose>
<!-- 顯示所有欄目內容 -->
<xsl:when test="$parentid=0">
<!-- 是否熱門 -->
<xsl:choose>
<!-- 設置了熱門,還必須設置熱門的點擊數,否則仍然是顯示所有文章 -->
<xsl:when test="$ishot='true'">
<!-- 是否推薦 -->
<xsl:choose>
<!-- 設置了推薦,還必須設置推薦的優先級,否則仍然是顯示所有文章 -->
<xsl:when test="$iselite='true'">
{PE.Label id="多模型內容信息列表_排序方式" parentid="0" arrnodeid="0" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />" inputername="<xsl:value-of select="$inputername" />" datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" showtype="1" titlelen="<xsl:value-of select="$titlelen" />" shownodename="<xsl:value-of select="$shownodename" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />" shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" usepage="false" opentype="<xsl:value-of select="$opentype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" /}
</xsl:when>
<xsl:otherwise>
{PE.Label id="多模型內容信息列表_排序方式" parentid="0" arrnodeid="0" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />" inputername="<xsl:value-of select="$inputername" />" datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" showtype="1" titlelen="<xsl:value-of select="$titlelen" />" shownodename="<xsl:value-of select="$shownodename" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />" shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" usepage="false" opentype="<xsl:value-of select="$opentype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="0" /}
</xsl:otherwise>
</xsl:choose>
<!-- 是否推薦結束 -->
</xsl:when>
<xsl:otherwise>
<!-- 是否推薦 -->
<xsl:choose>
<!-- 設置了推薦,還必須設置推薦的優先級,否則仍然是顯示所有文章 -->
<xsl:when test="$iselite='true'">
{PE.Label id="多模型內容信息列表_排序方式" parentid="0" arrnodeid="0" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />" inputername="<xsl:value-of select="$inputername" />" datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" showtype="1" titlelen="<xsl:value-of select="$titlelen" />" shownodename="<xsl:value-of select="$shownodename" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />" shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" usepage="false" opentype="<xsl:value-of select="$opentype" />" cols="<xsl:value-of select="$cols" />" hits="0" elitelevel="<xsl:value-of select="$elitelevel" />" /}
</xsl:when>
<xsl:otherwise>
{PE.Label id="多模型內容信息列表_排序方式" parentid="0" arrnodeid="0" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />" inputername="<xsl:value-of select="$inputername" />" datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" showtype="1" titlelen="<xsl:value-of select="$titlelen" />" shownodename="<xsl:value-of select="$shownodename" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />" shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" usepage="false" opentype="<xsl:value-of select="$opentype" />" cols="<xsl:value-of select="$cols" />" hits="0" elitelevel="0" /}
</xsl:otherwise>
</xsl:choose>
<!-- 是否推薦結束 -->
</xsl:otherwise>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -