90 lines
3.5 KiB
Plaintext
90 lines
3.5 KiB
Plaintext
<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>
|
|
<datatype>supersql</datatype>
|
|
<default>2</default>
|
|
<intro>父栏目ID{默认值:2,传入值:@RequestInt_Id}</intro>
|
|
</attributes>
|
|
<UsePage>True</UsePage>
|
|
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Nodes WHERE NodeID NOT IN (SELECT TOP @startrow NodeID FROM PE_Nodes WHERE ParentID = @parentId AND ShowOnList_Parent=1 AND PurviewType != 3 ORDER BY OrderID) AND (ParentID = @parentId) AND ShowOnList_Parent=1 AND PurviewType != 3 ORDER BY OrderID</LabelSqlString>
|
|
<LabelSqlCount>SELECT COUNT(*) FROM PE_Nodes WHERE ParentID = @parentId AND ShowOnList_Parent=1 AND PurviewType != 3</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="titleLength"/>
|
|
<xsl:param name="outputQty"/>
|
|
<xsl:param name="hits"/>
|
|
<xsl:param name="eliteLevel"/>
|
|
<xsl:param name="linkOpenType" />
|
|
<xsl:template match="/NewDataSet">
|
|
<xsl:for-each select="Table">
|
|
<div class="childclass_main_box">
|
|
<div class="childclass_title">
|
|
<div class="more">
|
|
<a>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)"/>
|
|
</xsl:attribute>[更多]</a>
|
|
</div>
|
|
<a>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('true',NodeID)"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="pe:GetNode(NodeID,'name')"/>
|
|
</a>
|
|
</div>
|
|
<div class="childclass_content">
|
|
<div class="p_class_list2">
|
|
<ul>{PE.DataSource id="InfoList<xsl:value-of select="NodeID"/>" datasource="显示图片栏目循环列表信息" nodeArray="<xsl:value-of select="arrChildID"/>" parentId="<xsl:value-of select="$parentId"/>" outputQty="<xsl:value-of select="$outputQty"/>" hits="<xsl:value-of select="$hits"/>" eliteLevel="<xsl:value-of select="$eliteLevel"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" xslt="true" /}{PE.Repeat id="InfoList<xsl:value-of select="NodeID"/>" loop="10"}<li>
|
|
<div class="pe_u_thumb">{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="DefaultPicUrl" /}</div>
|
|
<div class="pe_u_thumb_title">{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="InfoPath" /}</div>
|
|
</li>{/PE.Repeat}</ul>
|
|
</div>
|
|
</div>
|
|
<div class="clearbox">
|
|
</div>
|
|
</div>
|
|
</xsl:for-each>
|
|
</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>hits</name>
|
|
<datatype>supersql</datatype>
|
|
<default>0</default>
|
|
<intro>热门最小点击数</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>eliteLevel</name>
|
|
<datatype>supersql</datatype>
|
|
<default>0</default>
|
|
<intro>推荐优先级</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>linkOpenType</name>
|
|
<datatype>supersql</datatype>
|
|
<default>2</default>
|
|
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
|
</attributes>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
</root> |