Link To Another Page

From MODx Wiki

Jump to: navigation, search


To link to another page in the same MODx site set the link href to "[~your-document-id~]". For example, to link to the document with the ID of 7:

  1. <a href="[~7~]">click here to go to document #7</a>

Alternatively, there is a plugin called AliasLinks which allows you to use the document alias in the href, like this:

  1. <a href="[~[+alias:contact-us+]~]">contact us</a>


This plugin must be installed and configured before it can be used. For details, see the AliasLinks forum thread

Personal tools