We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22303 MODX Staff
    • 10,725 Posts
    This is an auto-generated topic for Breadcrumbs 1.1-rc2 by opengeek.

    Brief Description:

    Creates a highly configurable and styleable breadcrumb navigation trail.


    Breadcrumbs 1.1-rc2 (August 31, 2010)

    • Fix bug that skips the immediate children of site_start
      • 436 ☆ A M B ☆
      • 265 Posts
      Does anybody know a parameter for this to change the B_crumbBox class name to something else, and also is it possible to change the <span> to a <div>?
        MODX Ambassador for Thailand. Managing Director at Monogon, a web design and development studio based in Bangkok, Thailand. - Follow me on Twitter.
        • 6332
        • 8 Posts
        There is probably bug with double parsing "B_hideCrumb", this is my non-html valid output
        <li class="B_crumb"><li class="B_hideCrumb">...</li></li>
        


        The problem is in breadcrumbs.class.php on line 281:
        $o .= $this->getChunk('bcTplCrumb',array(
            'text' => $crumb,
        ))."\n";
        


        my dumb fix:

        $o .= ' '.$this->config['crumbSeparator'].' ';
        if (preg_match("/B_hideCrumb/i", $crumb)) {
          $o .= $crumb."\n";
        } else {
          $o .= $this->getChunk('bcTplCrumb',array(
              'text' => $crumb,
          ))."\n";
        
        }
        
          • 10638
          • 57 Posts
          Quote from: Adam at Sep 17, 2010, 01:17 PM

          Does anybody know a parameter for this to change the B_crumbBox class name to something else, and also is it possible to change the <span> to a <div>?

          I have the same query. I am also trying rearrange the markup. It appears the only place to do that is within the class for now? wink

          Oops. smiley You can edit the chunks that install themselves when the breadcrumbs package is installed. rolleyes
            • 17499 ☆ A M B ☆
            • 872 Posts
            OpenGeek has released another Breadcrumbs tool not so long ago.

            It might be more customisable : http://modxcms.com/forums/index.php/topic,55579.0.html
              • 36686
              • 165 Posts
              In case someone runs into the same issue as me.... All pages on my site suddenly went blank, and after lots of troubleshooting it turns out that it’s the pathThruUnPub property in the breadcrumbs snippet that’s causing the site to fail. The site crashes when it’ set to &pathThruUnPub=`0`, when I change it to `1` it’s fine. Just thought I’d let you know smiley
                • 31014
                • 11 Posts
                Breadcrumbs v1.1 rc2 for Revolution 2.0.8 : can’t make &hideOn (= ’do not display breadcrumbs for certain pages’) setting of Breadcrumbs to work... it is deprecated setting?

                What are other alternatives for this option (maybe another snippet)?
                  • 34078
                  • 76 Posts
                  Recently, I searched how specify the start ID of the breadcrumb and it seems that this is not possible.

                  So here my (dirty) solution. wink
                  Open the /core/components/breadcrumbs/breadcrumbs.class.php file and add these few lines :

                  In the __construct function, add the config parameter startId :
                  <?php
                    $this->config = array_merge(array(
                      'startId' => null,
                      ...
                    ),$config);
                  


                  In the run function, replace
                  <?php
                  $resource = & $this->modx->resource;
                  

                  by
                  <?php
                    if(!is_null($this->config['startId']))
                    {
                      $resource = & $this->modx->getObject('modResource', array('id' => $this->config['startId']));
                    }
                  		
                    if (empty($resource) || $resource == null)
                    {
                      $resource = & $this->modx->resource;
                    }
                  


                  Maybe Shaun could add this feature in a future release of Breadcrumb ! grin