We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19613
    • 70 Posts
    Hi Ppl,
    This is my first newbie post so please be gentle. Where/how do i link to pages inside a chunk or where can i find the page url to do so?

    I have a footer (as a chunk) and need to add some links to pages i have made i.e. site map/privacy/contact and yet I cant find any documentation that makes sense on how to link to these pages?

    Am I being thicker than a whale omlette? I am used to using Joomla and people say it has a long-learning curve but I found it much easier to grasp than Modx...

    anyone help? huh
    Thanks.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You create links with [~xxx~] tags, where xxx is the document ID of the page you want to link to. Document IDs are the numbers in () you see to the right of the document names in the Document Tree in the Manager.
      <a href="[~42~]">Site Map</a> | <a href="[~43~]">Privacy</a> | etc...


      You can also put those documents in a "container" document, and use Wayfinder to generate your menu. I usually don’t do that for such a small, simple menu that isn’t going to change, since calling a snippet just adds more overhead to the page generation.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 19613
        • 70 Posts
        Thanks for the quick reply susan i appreciaite it becuase it’s been driving me mad this afternoon (UK) ... i’ll give it a go.

        (Don’t tell everyone - but the Modx code is much leaner and cleaner than Joomla wink )

        Mr Happy (now)
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          (we know that... why do you think we use MODx? grin)

          This might be of use to you
          http://sottwell.com/modx-from-the-inside.html
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 19613
            • 70 Posts
            Thanks for the link... wish I had that sooner laugh ... maybe would have saved a few hairs - I found it much easier to comprehend than the Wiki etc! Nice work.

            Chris cool