We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25737
    • 62 Posts
    I’m looking for a snippet that will auto add links to certain pages when other pages are added under it.

    Example:

    CellPhonereviews.html is a main page and I add a page, iphonerevies.html under this page or in the tree. Im looking for the cellphonereviews.html page to auto add a link to the inside page iphonereviews.html. The link thats auto created on CellPhonereviews.html should be a title tag from iphonerevies.html

    Any help would be greatly appreciated.

    Thanks everyone!
      Faithfully using MODx since 2007!
      • 14050
      • 788 Posts
      Am I missing something or is there any reason Wayfinder would not work?
        Jesse R.
        Consider trying something new and extraordinary.
        Illinois Wine

        Have you considered donating to MODx lately?
        Donate now. Every contribution helps.
        • 25737
        • 62 Posts
        Haha. I have no idea how I missed that one. My bad.

        Is there a way to pull in a description of the page with it along with the link?
          Faithfully using MODx since 2007!
          • 14050
          • 788 Posts
          If you need to pull in other document fields (e.g., description, longtitle, introtext, etc.) you can use Ditto to accomplish something very similar to Wayfinder.
            Jesse R.
            Consider trying something new and extraordinary.
            Illinois Wine

            Have you considered donating to MODx lately?
            Donate now. Every contribution helps.
            • 7231
            • 4,205 Posts
            Quote from: runningthingz at Feb 19, 2008, 01:12 PM

            Haha. I have no idea how I missed that one. My bad.

            Is there a way to pull in a description of the page with it along with the link?
            Actually you can access all document variables as well as Template variables and use them in your tpl chunks. Or you can also use GetField within the Wayfinder chunk to access any variable placeholder as well.

            Ditto = flat file output (no levels)
            Wayfinder = layered output with levels (children are treated independently from the parents)
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]