这是因为这几个样式的.xls文件有问题,可以做如下修改:
- 打开站点目录下的DesktopModules\CISS.SideMenu\styles
- 找到同名的目录,这里时Vertial1
- 打开vertical1.xsl
- 找到这几行
<!-- LEVEL1 -->
<xsl:if test="Level =1">
<xsl:choose >
<xsl:when test="( ( ((IsParent ='True') or (Sibling_of_Current_Tab='True') or DirectChild_of_Current_Tab='True') ) or ($ExpandAll='True' and $Deep>=1)) and (IsCurrent='False')">
<tr><td>
<a class="MenuLevel1_Item" href="{FullUrl}"><xsl:value-of select="TabName"/></a>
</td></tr>
</xsl:when>
<xsl:if test="Level =1">
<xsl:choose >
<xsl:when test="( ( ((IsParent ='True') or (Sibling_of_Current_Tab='True') or DirectChild_of_Current_Tab='True') ) or ($ExpandAll='True' and $Deep>=1)) and (IsCurrent='False')">
<tr><td>
<a class="MenuLevel1_Item" href="{FullUrl}"><xsl:value-of select="TabName"/></a>
</td></tr>
</xsl:when>
- 在判断条件test="( ( ((IsParent ='True') or (Sibling_of_Current_Tab='True') or DirectChild_of_Current_Tab='True') ) or ($ExpandAll='True' and $Deep>=1)) and (IsCurrent='False')"的最后加入一个“or (IsAdminTab='True'”(不包括双引号)
- 修改完如下:
<!-- LEVEL1 -->
<xsl:if test="Level =1">
<xsl:choose >
<xsl:when test="( ( ((IsParent ='True') or (Sibling_of_Current_Tab='True') or DirectChild_of_Current_Tab='True') ) or ($ExpandAll='True' and $Deep>=1)) and (IsCurrent='False') or (IsAdminTab='True')">
<tr><td>
<a class="MenuLevel1_Item" href="{FullUrl}"><xsl:value-of select="TabName"/></a>
</td></tr>
</xsl:when>
<xsl:if test="Level =1">
<xsl:choose >
<xsl:when test="( ( ((IsParent ='True') or (Sibling_of_Current_Tab='True') or DirectChild_of_Current_Tab='True') ) or ($ExpandAll='True' and $Deep>=1)) and (IsCurrent='False') or (IsAdminTab='True')">
<tr><td>
<a class="MenuLevel1_Item" href="{FullUrl}"><xsl:value-of select="TabName"/></a>
</td></tr>
</xsl:when>
最后的效果: