first commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<root>
|
||||
<LabelType>WAP类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelSqlString>SELECT TOP @outputQty PE_CommonModel.* FROM PE_CommonModel WHERE NodeID IN (@nodeArray) AND Status = 99 ORDER BY UpdateTime DESC</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:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table) = 0">
|
||||
<p>本栏目尚无内容!</p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="Table">
|
||||
<p>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:SitePath()"/>/wap/wapitem.aspx?id=<xsl:value-of select="GeneralID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>nodeArray</name>
|
||||
<default>1,2,3,4</default>
|
||||
<intro>栏目ID组</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>列表数量</intro>
|
||||
</attributes>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user