first commit
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>问答类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>categoryID</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>类型ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>2</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:1,新窗口:2,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>splitChar</name>
|
||||
<datatype>string</datatype>
|
||||
<default>></default>
|
||||
<intro>类型之间拆分修饰符{>>:>>,-:-,>:>}</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT * FROM PE_QA_Category WHERE CategoryID = @categoryID</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" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="categoryID" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="splitChar"/>
|
||||
<xsl:param name="depth"/>
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:if test="ParentID != CategoryID">
|
||||
{PE.Label id="问答当前位置导航" categoryID="<xsl:value-of select="ParentID"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" depth="<xsl:value-of select="$depth + 1"/>" /}
|
||||
</xsl:if>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
{PE.SiteConfig.ApplicationPath/}QA/QuestionList.aspx?ID=<xsl:value-of select="CategoryID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:if test="$linkOpenType = 1">_blank</xsl:if>
|
||||
<xsl:if test="$linkOpenType = 2">_self</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="CategoryName"/>
|
||||
</a>
|
||||
<xsl:if test="$splitChar != '' and $depth != 0">
|
||||
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text><xsl:value-of select="$splitChar" />
|
||||
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>depth</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>递归深度</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user