We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32025
    • 305 Posts
    I am using a theme that shows a breadcrumb but I am only going 3 levels deep. The theme is laid out like this:

    <ul class="breadcrumb">
    									<li><a href="[[++site_url]]">Home</a></li>
    									<li class="active">[[parentSnippet]] </li>
    								</ul>
    


    I am trying to get this line:
    <li class="active">[[parentSnippet]] </li>
    to output the Title of the Parent (if there is a parent. If not, then just have it output the current Page Title. I found this post: https://forums.modx.com/thread/?thread=11074&page=2 but this information is over 6 years old and none of the suggestions worked.

    How can I output my pages Parent Title (or the current Page Title if there is no parent) to HTML for my template? I could not find any tags that might help me here.

    This question has been answered by multiple community members. See the first response.

      Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
    • discuss.answer
      • 36448
      • 58 Posts
      Sorry, I don't know this snippet.

      I'm using pdoTools, maybe you try that?

      for example:
      [[!pdoCrumbs?
        &context=`web`
        &depth=`6`
        &showHome=`1`
        &showAtHome=`0`
        &tplWrapper=`@INLINE <ul class="breadcrumb">[[+output]]</ul>`
        &tplCurrent=`@INLINE <li>[[+menutitle]]</li>`
        &tpl=`@INLINE <li><a href="[[+link]]">[[+menutitle]]</a></li>`
        &outputSeparator=``
      ]]
      [ed. note: krischel last edited this post 6 years, 11 months ago.]
      • discuss.answer
        • 3749
        • 24,544 Posts
        You could try &showContainer=`1` in the Breadcrumb snippet tag.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 32025
          • 305 Posts
          Thank you both, the pdoTools snippet with the &showContainer=`1` in the Breadcrumb snippet tag was the perfect fix.
            Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/