Pagini Sterge din Breadcrumb

Astăzi, Am fost faci unele de branding pentru site-ul Publishing, care este migrat de la PHP / HTML utilizând cod particularizat.

Când m-am activat breadcrumb pe paginile (evident, am folosit propriul nostru aspecte de pagini personalizate), the “pagini” şi “.aspx” în numele fişierului este un fel de enervant. Iniţial m-am gândit de a elimina acest lucru adăugând javascript / jQuery pe pagina.

Dar eu tot gândesc că, aceasta nu ar trebui să fie cel mai bun mod de a face acest lucru.

Apoi am constatat că schimbarea SiteMapProvider proprietate pentru paine Crumb în Master Page din “SPContentMapProvider” pentru “CurrentNavSiteMapProviderNoEncode”, a magic.

Acum, Sitemap-ul meu arata ca mai jos:

5 comments to Remove Pages from Breadcrumb

  • Rahul Babar

    Hi Udayakumar,

    I am doing the same thing on my sharepoint publishing portal but it still does not work for me. Am I missing something?

    Multumesc,
    Rahul Babar

  • What change do you see in breadcrumb after update?

  • Rahul Babar

    Thanks for the quick response.

    Actually I was missing to change sitemappath control in layout pages. I was doing it only in master page.

    Using “SPContentMapProvider”, I get the breadcrumb as

    My Portal > Finance and Corporate Services > Information Technology > Pages > Home.aspx

    After changing it to “CurrentNavSiteMapProviderNoEncode”, breadcrumb becomes

    My Portal > Finance and Corporate Services > Information Technology

    But the requirement is to have breadcrumb like the following.

    My Portal > Finance and Corporate Services > Information Technology > Acasă

    The same kind of breadcrumb comes in pages like AllItems.aspx of list/library.

    Can we achieve this by some workaround? I appreciate your suggestions.

    Multumesc,
    Rahul Babar

  • Martin

    Thanks a lot! You made my day 🙂

  • I adore your wordpress theme, exactly where do you get a hold of it from?

Plecare un Reply

Puteţi utiliza aceste tag-uri HTML

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>