We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27992
    • 4 Posts
    Hello,

    When using Breadcrumbs (Version: 1.0.1) the current position is not shown as a link

    Breadcrumbs call :

    [[Breadcrumbs? &showCrumbsAtHome=`1` &showHomeCrumb=`1` &showCurrentCrumb=`1` &currentAsLink =`1` &respectHidemenu=`0`]]

    MODx version:

    MODx 0.9.6.1p2 (rev 3281)

    Any suggestions ?
      • 4310
      • 2,310 Posts
      My limited call of
      [[Breadcrumbs? &showHomeCrumb=`1`]]
      shows the current page in the crumb trail.
      Maybe one of your other parameters is upsetting it?
        • 27992
        • 4 Posts
        The current page is shown in the crumb trail but not as a link which I would expect based on the

          &currentAsLink =`1` 


        setting
          • 4310
          • 2,310 Posts
          Sorry I misread your post.
          Why would you want the current page as a link, after all you’re already there, clicking it would just refresh the page.
            • 27992
            • 4 Posts
            I fully agree on that, however I want each crumb of the trail to have the same color which differs from the <Curent location : > prefix

            Current location : Home >> aaa >> bbb
              • 4310
              • 2,310 Posts
              Ah, I see.
              You could use the CSS to style the final crumb.
              It’s one of these two classes, can’t remember which!
              <span class="B_lastCrumb"><span class="B_currentCrumb">
                • 27992
                • 4 Posts
                Hello David,

                Thanks a lot for your help.

                I added following lines to my style sheet to make it work :

                 .B_currentCrumb {
                    color: #9F9F9F;
                } 



                I also tested:

                 .B_lastCrumb {
                    color: #9F9F9F;
                } 


                The result was the same.

                From the Breadcrumbs snippet I retrieved following information:

                * currentCrumb: Span or A tag surrounding the current crumb
                * lastCrumb: Span surrounding last crumb, whether it is the current page or not

                I do not understand that the last crumb is not neccessarily the current page.
                If I reduce the number of visible crumbs, the trail is reduced at the beginning of the trail, the last crumb is remains visible.

                I decided to use B_currentCrumb.

                Thanks again for your help

                Egon van Os