first commit
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<root>
|
||||
<LabelType>栏目类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>每栏目显示内容数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<default>2</default>
|
||||
<intro>内容父栏目ID{默认值:0,自动传入:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<default>0</default>
|
||||
<intro>最小热门点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>eliteLevel</name>
|
||||
<default>0</default>
|
||||
<intro>推荐优先级</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<default>2</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Nodes N WHERE N.NodeID NOT IN (SELECT TOP @startrow [IN].NodeID FROM PE_Nodes [IN] WHERE [IN].ParentID = @parentId AND [IN].ShowOnList_Parent = 1 AND [IN].PurviewType != 3 ORDER BY [IN].OrderID) AND N.ParentID = @parentId AND N.ShowOnList_Parent = 1 AND N.PurviewType != 3 ORDER BY N.OrderID</LabelSqlString>
|
||||
<LabelSqlCount>SELECT COUNT ([IN].NodeID) FROM PE_Nodes [IN] WHERE [IN].ParentID = @parentId AND [IN].ShowOnList_Parent = 1 AND [IN].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="outputQty" />
|
||||
<xsl:param name="parentId" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="hits" />
|
||||
<xsl:param name="eliteLevel" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<div class="c_spacing">
|
||||
</div>
|
||||
<div class="c_main_box">
|
||||
<div class="class_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="class_content">
|
||||
<div class="p_class_list">
|
||||
<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>
|
||||
{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="DefaultPicUrl" /}
|
||||
<br />
|
||||
{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="InfoPath" /}
|
||||
</li>
|
||||
{/PE.Repeat}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clearbox">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user