Hủy bỏ trang từ breadcrumb

Hôm nay, Tôi đã làm một số thương hiệu cho xuất bản trang web, đó là di cư từ PHP / HTML bằng cách sử dụng mã tùy chỉnh.

Khi tôi kích hoạt các mẩu bánh mì trên các trang (rõ ràng là chúng tôi sử dụng của riêng bố cục trang tùy chỉnh của chúng tôi), các “trang” và “.aspx” trong tên tập tin là loại gây phiền nhiễu. Ban đầu tôi nghĩ rằng loại bỏ điều này bằng cách thêm javascript / jquery trên trang.

Nhưng tôi cứ nghĩ rằng, nó không phải là cách tốt nhất để làm điều này.

Sau đó, tôi thấy rằng việc thay đổi SiteMapProvider tài sản cho Bánh mì Crumb trong Master Page từ “SPContentMapProvider” đến “CurrentNavSiteMapProviderNoEncode”, đã làm các phép thuật.

Trả Sơ đồ trang web của tôi trông giống như dưới đây:

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?

    Cảm ơn,
    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 > Trang chủ

    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.

    Cảm ơn,
    Rahul Babar

  • Martin

    Cảm ơn rất nhiều! You made my day 🙂

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

Để lại một trả lời

Bạn có thể sử dụng các thẻ HTML

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