Tudalennau Tynnu o'r Breadcrumb

Heddiw, Roeddwn yn gwneud rhywfaint o brandio ar gyfer Cyhoeddi safle, sydd yn mudo o'r PHP / HTML gan ddefnyddio cod arfer.

Pan fyddaf yn galluogi briwsion bara ar dudalennau (amlwg rydym yn defnyddio ein cynlluniau dudalen hun arfer), y “dudalennau” a “.aspx” yn enw'r ffeil yn fath o boen. I ddechrau, yr wyf yn meddwl am symud hyn drwy ychwanegu javascript / jquery ar y dudalen.

Ond yr wyf yn cadw meddwl y, ni ddylai fod yn y ffordd orau o wneud hyn.

Yna mi fod newid SiteMapProvider eiddo ar gyfer Bara Crumb yn Master Tudalen o “SPContentMapProvider” i “CurrentNavSiteMapProviderNoEncode”, wnaeth y hud.

Nawr Fy Map o'r safle yn edrych fel isod:

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?

    Diolch,
    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 > Hafan

    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.

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

Ad a Ateb

Gallwch ddefnyddio tagiau HTML hyn

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