📄 根栏目列表.config
字号:
<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="number" />
<xsl:param name="colNumber" />
<xsl:param name="displayTips" />
<xsl:param name="titleLength" />
<xsl:param name="nodeId" />
<xsl:param name="linkOpenType" />
<xsl:param name="splitChar" />
<xsl:template match="/NewDataSet/Table">
<a>
<xsl:choose>
<xsl:when test="NodeType = 4">
<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:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 2">
<xsl:choose>
<xsl:when test="pe:GetNodeFieldName(NodeID,'OpenType') = 0">_self</xsl:when>
<xsl:otherwise>_blank</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$displayTips = 'true'">
<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() = count(/NewDataSet/Table)">
<xsl:value-of select="$splitChar" />
</xsl:if>
<xsl:if test="position() mod $colNumber = 0">
<xsl:if test="count(/NewDataSet/Table) > position()">
<xsl:value-of select="$splitChar" />
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>40</default>
<intro>显示数量</intro>
</attributes>
<attributes>
<name>colNumber</name>
<default>1</default>
<intro>每行显示</intro>
</attributes>
<attributes>
<name>displayTips</name>
<default>false</default>
<intro>显示栏目注释</intro>
</attributes>
<attributes>
<name>titleLength</name>
<default>20</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>当前页栏目ID</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>2</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -