📄 通用信息列表_普通式.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 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="contentlen"/>
<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="hits"/>
<xsl:param name="elitelevel"/>
<xsl:param name="tablename"/>
<xsl:template match="/">
<xsl:apply-templates select="NewDataSet/Table" />
</xsl:template>
<xsl:template match="NewDataSet/Table">
<xsl:choose>
<!-- 指定的栏目没有内容 -->
<xsl:when test="count(/NewDataSet/Table) = 0">
<li>
指定的栏目还没内容!
</li>
</xsl:when>
<xsl:otherwise>
<!-- 是否热门 -->
<xsl:choose>
<!-- 设置了热门,还必须设置热门的点击数,否则仍然是显示所有文章 -->
<xsl:when test="$ishot='true'">
<!-- 是否推荐 -->
<xsl:choose>
<!-- 设置了推荐,还必须设置推荐的优先级,否则仍然是显示所有文章 -->
<xsl:when test="$iselite='true'">
<!-- 是否包含子栏目 -->
<xsl:choose>
<xsl:when test="$includechild='true'">
<!-- 当arrnodeid为单个栏目ID,parentid=$arrnodeid,arrnodeid=0 -->
<xsl:choose>
<xsl:when test="pe:Convert2Int($arrnodeid)>0">
{PE.Label id="内容信息列表_排序方式" parentid="<xsl:value-of select="$arrnodeid" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" 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" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename"/>" /}
</xsl:when>
<xsl:otherwise>
{PE.Label id="内容信息列表_排序方式" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" 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" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename"/>" /}
</xsl:otherwise>
</xsl:choose>
<!-- 判断arrnodeid为单个栏目ID结束 -->
</xsl:when>
<xsl:otherwise>
{PE.Label id="内容信息列表_排序方式" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" 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" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename"/>" /}
</xsl:otherwise>
</xsl:choose>
<!-- 是否包含子栏目 -->
</xsl:when>
<xsl:otherwise>
<!-- 是否包含子栏目 -->
<xsl:choose>
<xsl:when test="$includechild='true'">
<!-- 当arrnodeid为单个栏目ID,parentid=$arrnodeid,arrnodeid=0 -->
<xsl:choose>
<xsl:when test="pe:Convert2Int($arrnodeid)>0">
{PE.Label id="内容信息列表_排序方式" parentid="<xsl:value-of select="$arrnodeid" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" 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" />" hits="<xsl:value-of select="$hits" />" elitelevel="0" tablename="<xsl:value-of select="$tablename"/>" /}
</xsl:when>
<xsl:otherwise>
{PE.Label id="内容信息列表_排序方式" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" 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" />" hits="<xsl:value-of select="$hits" />" elitelevel="0" tablename="<xsl:value-of select="$tablename"/>" /}
</xsl:otherwise>
</xsl:choose>
<!-- 判断arrnodeid为单个栏目ID结束 -->
</xsl:when>
<xsl:otherwise>
{PE.Label id="内容信息列表_排序方式" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" 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" />" hits="<xsl:value-of select="$hits" />" elitelevel="0" tablename="<xsl:value-of select="$tablename"/>" /}
</xsl:otherwise>
</xsl:choose>
<!-- 是否包含子栏目 -->
</xsl:otherwise>
</xsl:choose>
<!-- 是否推荐结束 -->
</xsl:when>
<xsl:otherwise>
<!-- 是否推荐 -->
<xsl:choose>
<!-- 设置了推荐,还必须设置推荐的优先级,否则仍然是显示所有文章 -->
<xsl:when test="$iselite='true'">
<!-- 是否包含子栏目 -->
<xsl:choose>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -