We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7869
    • 118 Posts
    I’m using the Breadcrumb snippet -- very cool. I was wondering if it’s possible to have the breadcrumb also be the title of each page for example...

    Home | Projects | Tutorials | MODx Tutorials | Breadcrumb Page Titles

    I tried putting the [[Breadcrumb]] snippet into the <title> tag, but the title becomes every piece of code and text that comprises the breadcrumb. Definitely not what I want.

    Perhaps breadcrumb page titles are something that should be avoided. I’ve seen some sites use them and it seemed like a good way for SEO, but I don’t know. Please advise.
      -Dorian
      • 33337
      • 3,975 Posts
      [[Breadcrumb]] outputs all the html needed to create links etc. If you want to use it in yout <title> you need to modify it to output only text without any html formatting.

      Hope this helps.

      regards,

      zi
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 7869
        • 118 Posts
        I DID IT!!! This MODx is getting pretty cool (considering I’ve never used a CMS before)!

        Would it be worth posting the revised snippet for others?
          -Dorian
          • 25663 MODX Staff
          • 12,272 Posts
          Sure smiley ... might even want to post it as an Extra in the resources library (in the Breadcrumb resource).
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7869
            • 118 Posts
            If I did add this to the resources library, what are the terms/restrictions for placing comments at the beginning of the file? Do I have to add my contact info to it? Do I have to mention what changes were made from the original file? What would the version number be? What about the license? Pardon my ignorance, but I’ve never contributed anything before.
              -Dorian