We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2661
    • 53 Posts
    I’d like to create a "Back to ’parent’" link at the bottom of every child in my cataglog.

    So, if you are looking at a specific seat in a catalog and you would like to go back to the parent (which is the Seating index), you could.

    In my attached image, a link that goes from the Japanese Slat Table to the Table document.

    Is this a Ditto call?

    I thought I was on the right path with [~[+parent+]~], but it takes me all the way to the site Home page.

    Thanks in advance.
      • 4041
      • 788 Posts
      I think the Ultimateparent snippet can help in this situation:

      <a href="[~[!UltimateParent!]~]">My Parent</a>
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 2661
        • 53 Posts
        This works, but unfortunately, send me back to the first level of my tree. I’m trying to get the Back link to only go to the parent of the current Resource. Any guesses there? Thanks.
          • 16183
          • 1,390 Posts
          This works for me...

          <a href="[~[*parent*]~]">My Parent</a>


          cheers/k
            • 2661
            • 53 Posts
            Quote from: kongondo at Aug 30, 2009, 06:58 PM

            This works for me...

            <a href="[~[*parent*]~]">My Parent</a>


            cheers/k

            Bingo!

            I was using ++, not **. That was the issue. Thanks for the help and persistence!
              • 16183
              • 1,390 Posts
              You’re welcome...glad it worked for you. smiley

              cheers/k
                • 3749
                • 24,544 Posts
                Quote from: badnewsblair at Aug 30, 2009, 07:01 PM

                Bingo!

                I was using ++, not **. That was the issue. Thanks for the help and persistence!

                For future reference, generally: * is for document content fields like pagetitle, id, longtitle, alias, etc. and for template variables (which are really extra content fields you create yourself). + is for placeholders set by snippets like Ditto or Wayfinder. smiley
                  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
                  • 16183
                  • 1,390 Posts
                  Quote from: BobRay at Aug 31, 2009, 12:59 AM

                  Quote from: badnewsblair at Aug 30, 2009, 07:01 PM

                  Bingo!

                  I was using ++, not **. That was the issue. Thanks for the help and persistence!

                  For future reference, generally: * is for document content fields like pagetitle, id, longtitle, alias, etc. and for template variables (which are really extra content fields you create yourself). + is for placeholders set by snippets like Ditto or Wayfinder. smiley

                  Thx Bob,

                  I was looking for such an explanation but couldn’t find it wink

                  cheers/k