Páxinas Elimina do Breadcrumb

Hoxe, Eu estaba facendo algunhas marcas para o lugar de publicación, que migraram de PHP / HTML usando código personalizado.

Cando activei o breadcrumb en páxinas (obviamente, usamos os nosos propios esquemas de páxina personalizados), o “páxinas” e “.aspx” no nome do ficheiro é do tipo chat. Inicialmente pensei en retirar iso engadindo / javascript jQuery na páxina.

Pero eu sigo a pensar que, non debe ser a mellor forma de facelo.

Entón eu penso que o cambio de propiedade SiteMapProvider para pan Crumb en Master Page dende “SPContentMapProvider” para “CurrentNavSiteMapProviderNoEncode”, fixo a máxica.

Agora o meu Sitemap parece seguir:

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?

    Grazas,
    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 > Inicio

    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.

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

Deixe unha resposta

Pode usar estas etiquetas HTML

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