I made a page layout in SP2013, and enabled breadcrumbs, but the problem is the trail goes too far, it goes directly to the page name, for example:
> Mysite > en > Pages > default
but I want it to stop at the site level, so
> Mysite > en
I found the breadcrumb code in the .html file
<!--MS:<asp:ContentPlaceHolder id="PlaceHolderTitleBreadcrumb" runat="server">-->
<!--SPM:<SharePoint:ListSiteMapPath
runat="server"
SiteMapProviders="SPXmlContentMapProvider"
RenderCurrentNodeAsLink="false"
PathSeparator=""
CssClass="ms-breadcrumb"
NodeStyle-CssClass="ms-breadcrumbNode"
CurrentNodeStyle-CssClass="ms-breadcrumbCurrentNode"
RootNodeStyle-CssClass="ms-breadcrumbRootNode"
NodeImageOffsetX="0"
NodeImageOffsetY="289"
NodeImageWidth="16"
NodeImageHeight="16"
NodeImageUrl="/_layouts/15/images/fgimg.png?rev=23"
RTLNodeImageOffsetX="0"
RTLNodeImageOffsetY="312"
RTLNodeImageWidth="16"
RTLNodeImageHeight="16"
RTLNodeImageUrl="/_layouts/15/images/fgimg.png?rev=23"
HideInteriorRootNodes="true"
SkipLinkText=""/>-->
<!--ME:</asp:ContentPlaceHolder>-->
But I am not sure how to change it to fix it. I think I need to modify the sitemapprovider value. I found this page
https://ktskumar.wordpress.com/2008/04/14/sharepoint-navigation-providers-part-1
but I am still not sure.
Does anyone know?
Thanks
How to limit breadcrumb trail to site name?
July 28th, 2015 6:26pm
just limit the number of characters in the breadcrumb with the help of CSS.
use ellipses property: http://quirksmode.org/css/user-interface/textoverflow.html
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 2:31am
elipse limits the number of characters of the word, but I'm looking for levels of breadcrumb which is different.
July 30th, 2015 9:09am
kindly give me a screenshot to get more details.
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 9:14am
Well its basically this
Currently it shows this:
> Mysite > en > Pages > default
I want it to look like this:
> Mysite > en
July 30th, 2015 11:03am
Very simple, just split the array by > and splice last 2.
Can you give me HTML rendered on the page for this much part?
I will write JavaScript for you.
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 2:52pm