需要帮助自定义导航 [英] need help with custom navigation
问题描述
我想在我的OL网站上自定义导航。在教程中,它说
- 选择模块
- 选择自定义导航,单击确定
- 单击选择文件
- 选择文件TopNavFirstLevelElementsOnly.xslt并单击确定
I从来没有得到.xslt文件的列表,所以我无法选择该文件
我希望我的自定义导航是水平的,而不是垂直的
我该如何做?
< br>谢谢
I want to customize navigation on my OL website. In the tutorial, it says to
-select module
-select custom navigation, click ok
-click select file
-select the file TopNavFirstLevelElementsOnly.xslt and click ok
I never get a list of .xslt documents, so I can't select that file
I want my custom navigation to be horizontal, not vertical
How do I do this?
thanks
推荐答案
该文件是否包含在支持文件中? :(
无论如何,该文件的内容是:
< xsl:stylesheet xmlns:xsl =" http://www.w3.org/1999/XSL/Transform " version =" 1.0">
< xsl: param name =" NavType" />
< xsl:output method =" html" omit-xml-declaration =" no"
doctype-public =" officelive.microsoft.com" / >
Is that file not included with the supporting files? :(
Anyway, the contents of that file are:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:param name="NavType" />
<xsl:output method="html" omit-xml-declaration="no"
doctype-public="officelive.microsoft.com"/>
< xsl:template match =" / NavNodes">
< table cellspacing =" 0" class =" MSC_PrimaryNavFrame">
< tr>
< xsl:for-each select =" NavNode">
< td class =" MSC_PrimaryNavLinkFrame aish">
< div>
< a class =" MSC_PrimaryNavLink">
< xsl:attribute name =" class">
< xsl:text> MSC_PrimaryNavLink< / xsl:text>
< / xsl:attribute>
< xsl:attribute name =" href">
< xsl:value-of select = QUOT; @ URL" />
< / xsl:attribute>
< xsl:value-of select =" @ name" />
< / a>
< / div> < br>< td class =" MSC_PrimaryNavRightSpace">< / td>
< / td>
< / xsl:for-each>
< / tr>
< ; / table>
< / xsl:template>
< / xsl:stylesheet>
<xsl:template match="/NavNodes">
<table cellspacing="0" class=" MSC_PrimaryNavFrame" >
<tr>
<xsl:for-each select="NavNode">
<td class="MSC_PrimaryNavLinkFrame aish" >
<div>
<a class="MSC_PrimaryNavLink">
<xsl:attribute name="class">
<xsl:text>MSC_PrimaryNavLink</xsl:text>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="@url" />
</xsl:attribute>
<xsl:value-of select="@name"/>
</a>
</div>
<td class="MSC_PrimaryNavRightSpace"></td>
</td>
</xsl:for-each>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
这篇关于需要帮助自定义导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!