SharePoint导航和面包屑损坏

SharePoint导航和面包屑损坏

本文介绍了SharePoint导航和面包屑损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

在没有警告或没有进行任何更改的情况下,SharePoint 2013网站上的导航和面包屑莫名其妙地损坏了.

Without warning or without any changes being made, the navigation and breadcrumbs on our SharePoint 2013 site inexplicably broke.

面包屑:

面包屑仅显示当前页面(或子站点)和根.

Breadcrumbs are only showing the current page (or subsite) and the root.

例如:

  • 如果我的结构是:主页(站点)>培训(网站)>安全(站点).
  • 面包屑应如下所示:主页>培训>安全
  • 但是它们看起来像:Home>安全

如果我有四个级别:

  • 如果我的结构是:主页(站点)>培训(网站)>安全(站点)>服装(网站).
  • 面包屑应类似于:首页>培训>安全>服装
  • 但是它们看起来像:Home>服装

如果我有三个级别+一个页面:

If I had three levels + a page:

  • 如果我的结构是:主页(站点)>培训(网站)>安全(站点)>疏散区(页面).
  • 面包屑应类似于:首页>培训>安全>疏散区
  • 但是它们看起来像:Home>安全>疏散区

中间层似乎总是不见了.

The middle levels always seem to be missing.

这是我在主页上使用的面包屑代码.

Here's the breadcrumb code I'm using in my master page.

<asp:SiteMapPath runat="server" SiteMapProviders="SPSiteMapProvider,SPXmlContentMapProvider" RenderCurrentNodeAsLink="true" NodeStyle-CssClass="breadcrumbNode" CurrentNodeStyle-CssClass="breadcrumbCurrentNode" RootNodeStyle-CssClass="breadcrumbRootNode" HideInteriorRootNodes="false" SkipLinkText="" PathSeparator=" / " PathSeparatorStyle-CssClass="breadcrumb-separator" PathSeparatorStyle-Font-Bold="true" PathSeparatorStyle-ForeColor="#ceecfc" CurrentNodeStyle-ForeColor="#ceecfc" NodeStyle-ForeColor="#ceecfc" CurrentNodeStyle-Font-Underline="true" ParentLevelsDisplayed="-1"  /> 

导航:

使用结构:首页(网站(级别1))>培训(网站(第2级))>安全(站点(级别3))>服装(网站(第4级)).

Using the structure: Home (site (level 1)) > Training (site (level 2)) > Safety (site (level 3)) > Clothing (site (level 4)).

假设我在服装网站上.

我的导航设置是

全局:显示与父网站相同的导航项(父母正在使用结构导航)

Global: Display the same navigation items as the parent site (Parent is using Structural Navigation)

当前:结构导航:显示当前站点,当前站点下方的导航项以及该站点的同级兄弟.

Current: Structural Navigation: Display the current site, the navigation items below the current site, and the site's siblings.

不是通过以下方式查看当前导航:

Instead of seeing the current navigation with:

  • 第4级的导航项
  • 第4级的兄弟姐妹的导航项.

我看到当前的导航:

  • 级别1的导航项.
  • 级别4的导航项.

与面包屑一样,级别2和3完全被遗漏了,好像1是4的父级.

As with the breadcrumbs, levels 2 and 3 are being completely missed, as if 1 is the parent of 4.

这一直按预期进行,直到莫名其妙地没有.好像该结构已被站点完全丢失了.

This was working as expected until inexplicably it wasn't. It's as if the structure has been totally lost by the site.

以前有人经历过吗?

有人可以提供有关解决此问题的任何提示吗?

Can anybody offer any tips on how to fix this?

推荐答案

我在以下线程中启用了面包屑作为我的回复,它可以很好地工作:

I enabled Breadcrumb as my reply in the following thread, it could work well:

请在上述主题中更改您的母版页作为我的答复,比较结果.

Please change your master page as my reply in the above thread, compare the result.

谢谢

温迪


这篇关于SharePoint导航和面包屑损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-26 00:05