78 lines
2.9 KiB
XML
78 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<LabelType>栏目类</LabelType>
|
|
<LabelImage>../../Admin/Images/LabelIco/GetSlidePicProduct.gif</LabelImage>
|
|
<LabelIntro>根栏目导航标签</LabelIntro>
|
|
<LabelSqlString>SELECT TOP @outputQty * FROM PE_Nodes WHERE ParentID = 0 AND ShowOnMenu = 1 AND PurviewType != 3 ORDER BY RootID</LabelSqlString>
|
|
<LabelTemplate>
|
|
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet 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="titleLength" />
|
|
<xsl:param name="splitChar" />
|
|
<xsl:template match="/NewDataSet/Table">
|
|
<a>
|
|
<xsl:choose>
|
|
<!--转向链接-->
|
|
<xsl:when test="NodeType = 4">
|
|
<xsl:attribute name="target">
|
|
<xsl:choose>
|
|
<xsl:when test="pe:GetNodeInfo(NodeID,'OpenType') = 0">_self</xsl:when>
|
|
<xsl:otherwise>_blank</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="LinkUrl"/>
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<!--正常节点-->
|
|
<xsl:otherwise>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
|
|
</xsl:attribute>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:attribute name="target">
|
|
<xsl:choose>
|
|
<xsl:when test="pe:GetNodeInfo(NodeID,'OpenType') = 0">_self</xsl:when>
|
|
<xsl:otherwise>_blank</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
<xsl:if test="Tips != ''">
|
|
<xsl:attribute name="title">
|
|
<xsl:value-of select="Tips" />
|
|
</xsl:attribute>
|
|
</xsl:if>
|
|
<xsl:value-of select="pe:CutText(NodeName,$titleLength,'')" />
|
|
</a>
|
|
<xsl:if test="position() != last()">
|
|
<xsl:value-of select="$splitChar" />
|
|
</xsl:if>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>outputQty</name>
|
|
<datatype>supersql</datatype>
|
|
<default>40</default>
|
|
<intro>显示栏目的数量</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>supersql</datatype>
|
|
<default>20</default>
|
|
<intro>栏目名称长度</intro>
|
|
</attributes>
|
|
<OutType>sin</OutType>
|
|
<attributes>
|
|
<name>splitChar</name>
|
|
<datatype>supersql</datatype>
|
|
<default>
|
|
</default>
|
|
<intro>栏目名称之间的分隔符</intro>
|
|
</attributes>
|
|
<CacheTime>720</CacheTime>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
</root> |