📄 雅灰根栏目列表.config
字号:
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>通用列表标签</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetSlidePicProduct.gif</LabelImage>
<LabelIntro>根栏目导航标签</LabelIntro>
<LabelSqlString>select top @num * from PE_Nodes WHERE ParentID=0 and ShowOnMenu=1 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="colnum" />
<xsl:param name="target" />
<xsl:param name="showtips" />
<xsl:param name="titlelen" />
<xsl:param name="NodeId" />
<xsl:param name="splitchar" />
<xsl:param name="hoverStyle" />
<xsl:template match="/">
<xsl:for-each select="/NewDataSet/Table">
<!--�根据栏目属性输出连接地址 -->
<xsl:value-of select="$splitchar" />
<a>
<!--�判断是否当前栏目-->
<xsl:if test="NodeID = $NodeId">
<xsl:attribute name="class">
<xsl:value-of select="$hoverStyle" />
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="NodeType = 1">
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
</xsl:attribute>
</xsl:when>
<xsl:when test="NodeType = 2">
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
</xsl:attribute>
</xsl:when>
<xsl:when test="NodeType = 3">
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
</xsl:attribute>
</xsl:when>
<xsl:when test="NodeType = 4">
<xsl:attribute name="href">
<xsl:value-of select="LinkUrl"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$target = '_blank' or OpenType='1'">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:if>
<xsl:if test="$showtips = 'true'">
<xsl:attribute name="title">
<xsl:value-of select="Tips" />
</xsl:attribute>
</xsl:if>
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(NodeName,$titlelen,'')" />
</a>
<xsl:if test="position() = count(/NewDataSet/Table)">
<xsl:value-of select="$splitchar" />
</xsl:if>
<xsl:if test="position() mod $colnum = 0">
<xsl:if test="count(/NewDataSet/Table) > position()">
<xsl:value-of select="$splitchar" />
<br />
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>num</name>
<default>40</default>
<intro>�显示数量</intro>
</attributes>
<attributes>
<name>colnum</name>
<default>1</default>
<intro>每行显示</intro>
</attributes>
<attributes>
<name>showtips</name>
<default>false</default>
<intro>显示栏目注释</intro>
</attributes>
<attributes>
<name>titlelen</name>
<default>20</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>NodeId</name>
<default>0</default>
<intro>当前页栏目ID</intro>
</attributes>
<attributes>
<name>target</name>
<default>_self</default>
<intro>打开方式</intro>
</attributes>
<OutType>sin</OutType>
<attributes>
<name>splitchar</name>
<default>
</default>
<intro>分割符</intro>
</attributes>
<attributes>
<name>hoverStyle</name>
<default>on</default>
<intro>当前栏目链接样式</intro>
</attributes>
<CacheTime>720</CacheTime>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -