We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8898
    • 181 Posts
    Wow, that was fast. Thank you very much for fixing this so quickly! Now everything works as expected again. smiley

    Cheers,
    Jan
      This message has been ROT-13 encrypted twice for higher security.
      • 36763
      • 70 Posts
      Hi Ben,

      I just downloaded Breadcrumb and it just stopped my site from working.

      I'm currently running on a dev environment, but thought I'd let you see my logs. I don't believe I'm doing anything out of the ordinary.

      It's relating to:
        && (($resource->get('hidemenu') && $showHidden) || !$resource->get('hidemenu'))                                         // ShowHidden
         


      From the MAMP php error log.

      [12-Dec-2014 02:59:33 Europe/Berlin] PHP Fatal error:  Call to a member function get() on null in /Volumes/Creative2HD/Projects/Mobile_Voting_Site/www_root/core/cache/includes/elements/modsnippet/78.include.cache.php on line 96
      



      That was from running it from a static template.

      I'll see if I can decipher it, but thought I'd let you know.

      [[BreadCrumb? &crumbSeparator=`>` &showHomeCrumb=`1`]]


      Cheers,
      Steve
        • 37138
        • 12 Posts
        I am using breadcrumb 1.4.3 pl
        How to change pagetitle to menutitle in homecrumb?
          • 32025
          • 305 Posts
          Is it possible to hide breadcrumbs on specific pages? For my contact page and a few others it would be nice to hide, but I have my breadcrumb coding added into my main template (not on a per page basis). I don't want to ahve to add breadcrumbs coding to all of my pages individually so it makes sense if I can exclude some of the resources via the snipplet. I just don't know how (if this is possible).
            Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
            • 37984
            • 215 Posts
            Simply use the "exclude" parameter. Like this:

            [[!BreadCrumb? &exclude=`1`]]


            Where 1 = the id of your resource. You can include multiple resources in this way, separated by commas.

            If you're looking to hide the entire breadcrumb structure and not the just the individual page, simply use a conditional along with the id placeholder, like this:

            [[*id:neq=`1`:then=`[[BreadCrumb]]`]]
            [ed. note: designcouch last edited this post 8 years, 3 months ago.]
              Jesse Couch
              MODX Aficionado, Front-End Designer & Developer
              http://www.designcouch.com
              • 32025
              • 305 Posts
              Quote from: designcouch at Dec 18, 2015, 04:16 AM
              Simply use the "exclude" parameter. Like this:

              [[*id:neq=`1`:then=`[[BreadCrumb]]`]]

              That is what I was looking for exclude entire breadcrumb on a specific page. If I want to exclude a few pages, I suppose I can add additional comments like this?
              [[*id:neq=`1`:then=`*id:neq=`2`:then=`*id:neq=`3`:then=`[[BreadCrumb]]`]]
                Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
                • 8898
                • 181 Posts
                Quote from: wbbuilder at Dec 18, 2015, 04:57 AM
                If I want to exclude a few pages, I suppose I can add additional comments like this?
                [[*id:neq=`1`:then=`*id:neq=`2`:then=`*id:neq=`3`:then=`[[BreadCrumb]]`]]
                You'd get some problems with the nested backticks (some of which are missing in your example code), I guess. But you can use "or" and "and" in your output modifiers, see https://rtfm.modx.com/revolution/2.x/making-sites-with-modx/customizing-content/input-and-output-filters-%28output-modifiers%29. So a better alternative would be this:

                [[*id:neq=`1`:and:neq=`2`:and:neq=`3`:then=`[[BreadCrumb]]`]]


                Cheers,
                Jan
                  This message has been ROT-13 encrypted twice for higher security.
                • Or you could use pdoCrumbs, which provides an &exclude property. http://docs.modx.pro/en/components/pdotools/snippets/pdocrumbs
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                  • Is there a way to make Breadcrumb use the path set by SEOTab's FreezeURL?
                      MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
                      DESIGNfromWITHIN, MPThemes and Any Screen Size
                      Follow me on Twitter | Read my blog | My code on GitHub