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

Answered pdocrumbs

    • 52349
    • 41 Posts
    I spent far too long trying to get this to work. I suse pdotools for the nav and figured pdocrumbs should work, but yeah I so don't get it.
    <section class="page_breadcrumbs ds background_cover section_padding_50">
    				<div class="container">
    					<div class="row">
    						<div class="col-sm-12 text-center">
    							<h1>[[*menutitle]]</h1>
    							
    							
    							<ol class="breadcrumb divided_content wide_divider">
    							   
    							<li>
    									<a href=[[~1]]">
    										Home
    									</a>
    								</li>
    								<li>
    									<a href="#">The Parent 
    								</li></a>
    								<li class="active">[[*menutitle]]</li>
    							</ol>
    						</div>
    					</div>
    				</div>
    			</section>
    

    I know it should be simple but I am missing something...again

    This question has been answered by eleiz11. See the first response.

      • 3749
      • 24,544 Posts
      I assume that you have a pdoCrumbs tag somewhere and that this is your Tpl chunk for that.

      If that's the case, the tags should be placeholders, not content field tags:

      [[+menutitle]]


      It also seems odd that you want the same menutitle twice in each entry, but maybe I'm just misunderstanding what you're doing.

      It would help a lot if you said something about what results you're getting now. All we've got to go on is basically "it's not working."



        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
        • 17301
        • 932 Posts
        You have a few errors in your markup also. You're missing a quote at the start of the href:

        <li><a href=[[~1]]">Home</a></li>


        You also have an anchor tag ending after the </li>

        <li><a href="#">The Parent</li></a>

          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 52349
          • 41 Posts
          Sadly I really shouldn't do forums after a long day of frustrations. More or less I was looking for an example on how to pdocrumbs this chunk. This one had home, parent and a sub. For others there will be a home and a then parent. I'd say I am asking for a friend, but no tis me that is out of ideas.
          <section class="page_breadcrumbs ds background_cover section_padding_50">
                          <div class="container">
                              <div class="row">
                                  <div class="col-sm-12 text-center">
                                      <h1>[[*pagetiltle]]</h1>
                                       
                                       
                                      <ol class="breadcrumb divided_content wide_divider">
                                          
                                      <li>
                                              <a href="#">
                                                  Home
                                              </a>
                                          </li>
                                          <li>
                                              <a href="#">Services 
                                          </li></a>
                                          <li class="active">Random Title</li>
                                      </ol>
                                  </div>
                              </div>
                          </div>
                      </section>
          
          
          
          

            • 3749
            • 24,544 Posts
            [[*pagetiltle]]

            That will probably work better if you spell it 'pagetitle'. wink
              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
              • 17301
              • 932 Posts
              You also still have your anchor tag for services ending after your closing </li> tag.
                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 52349
                • 41 Posts

                I use pdo for my menu and it has inline tpl. I was wondering if say what I have below in the code for the breadcrumb section, what would the pdocrumbs call be?

                <section class="page_breadcrumbs ds background_cover section_padding_50">
                                <div class="container">
                                    <div class="row">
                                        <div class="col-sm-12 text-center">
                                            <h1>[[*pagetitle]]</h1>
                                              
                                              
                                            <ol class="breadcrumb divided_content wide_divider">
                                                 
                                            <li>
                                                    <a href="#">
                                                        Home
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="#">Services </a>
                                                </li>
                                                <li class="active">Random Title</li>
                                            </ol>
                                        </div>
                                    </div>
                                </div>
                            </section>
                
                
                



                I know what is below should be replaced with a better version of this
                [[pdoCrumbs?
                $showcurrent=`0`
                $to=`[[+id]]`
                $(don't know parent)
                ]]
                <li>
                                                    <a href="#">
                                                        Home
                                                    </a>
                                                </li>
                                                <li>
                                                    <a href="#">Services </a>
                                                </li>
                                                <li class="active">Random Title</li>
                
                • discuss.answer
                  • 52349
                  • 41 Posts
                  I got it whooo hoooo
                  
                  							   
                  			[[pdoCrumbs?
                  			&showAtHome=`0`
                  			&showHome=`1`
                  			&tpl=`@INLINE <li><a href="[[+link]]">[[+menutitle]]</a></li>`
                  			&tplCurrent=`@INLINE <li class="active">[[+menutitle]]</li>`
                  			&tplWrapper=`@INLINE <ol class="breadcrumb divided_content wide_divider">[[+output]]</ol>`
                  			]]