?? 文章子欄目列表.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>
<UsePage>
</UsePage>
<LabelSqlString>SELECT TOP 1 * FROM PE_Nodes WHERE NodeID = @parentId AND PurviewType != 3 </LabelSqlString>
<LabelSqlCount>SELECT COUNT(*) from PE_Nodes where ParentID = @parentId</LabelSqlCount>
<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="outputQty" />
<xsl:param name="titleLength"/>
<xsl:param name="displayPropertyType"/>
<xsl:param name="displayIncludePic"/>
<xsl:param name="displayAuthor"/>
<xsl:param name="displayDateTime"/>
<xsl:param name="displayHits"/>
<xsl:param name="displayHotSign"/>
<xsl:param name="displayNewSign"/>
<xsl:param name="displayTips"/>
<xsl:param name="displayCommentLink"/>
<xsl:param name="linkOpenType"/>
<xsl:param name="hits"/>
<xsl:param name="eliteLevel"/>
<xsl:param name="tableName"/>
<xsl:template match="/NewDataSet">
<div class="childclasslist_box">
<div class="c_main_box">
<div class="childclass_title">
<span class="childclass_pic">
</span>
<xsl:value-of select="pe:GetNode($parentId,'name')"/>
</div>
<div class="childclass_content">
<ul>
<xsl:choose>
<xsl:when test="count(Table) = 0">
<li style="color:red">本欄尚無內容!</li>
</xsl:when>
<xsl:otherwise>{PE.DataSource id="InfoList" datasource="顯示文章欄目循環列表信息_分頁" urlpage="true" page="true" pagesize="<xsl:value-of select="$outputQty"/>" nodeArray="<xsl:value-of select="Table/arrChildID"/>" parentId="<xsl:value-of select="$parentId"/>" titleLength="<xsl:value-of select="$titleLength"/>" hits="<xsl:value-of select="$hits"/>" eliteLevel="<xsl:value-of select="$eliteLevel"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" xslt="true" /}
{PE.Repeat id="InfoList" loop="1000"}
{PE.field id="InfoList" fieldname="IncludePic" /}
[{PE.field id="InfoList" fieldname="NodePath" /}]
{PE.field id="InfoList" fieldname="InfoPath" /}
{PE.field id="InfoList" fieldname="Hits" /}
{PE.field id="InfoList" fieldname="UpdateTime" /}
<br />
{/PE.Repeat}
</xsl:otherwise>
</xsl:choose>
</ul>
<div class="clearbox">
</div>
</div>
<div class="childclass_bot">
</div>
</div>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>每欄目顯示文章數</intro>
</attributes>
<attributes>
<name>titleLength</name>
<default>20</default>
<intro>標題最多字符數</intro>
</attributes>
<attributes>
<name>displayDateTime</name>
<default>mm-dd</default>
<intro>日期顯示方式</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>2</default>
<intro>內容鏈接的打開方式{欄目節點配置取代:2,新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>hits</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>熱門最小點擊數</intro>
</attributes>
<attributes>
<name>eliteLevel</name>
<default>0</default>
<intro>推薦優先級</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -