Kuondoa Kurasa kutoka Breadcrumb

Leo, Mimi nilikuwa kufanya baadhi ya branding kwa tovuti Publishing, ambayo ni wamehamia kutoka PHP / HTML code desturi kutumia.

Wakati mimi kuwezesha Breadcrumb katika kurasa (wazi sisi kutumika desturi yetu wenyewe ukurasa Layouts), ya “kurasa” na “.aspx” katika jina la faili ni aina ya annoying. Awali mimi mawazo ya kuondoa hii kwa kuongeza javascript / jQuery katika ukurasa.

Lakini mimi kuendelea kufikiri kwamba, ni lazima kuwa njia bora ya kufanya hivyo.

Basi nimeona kwamba kubadilisha SiteMapProvider mali kwa ajili ya mkate crumb katika Mwalimu Page kutoka “SPContentMapProvider” na “CurrentNavSiteMapProviderNoEncode”, gani ya uchawi.

Sasa Sitemap yangu inaonekana kama hapa chini:

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?

    Shukrani,
    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 > Home

    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.

    Shukrani,
    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?

BBC

Unaweza kutumia haya HTML

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