Adding a Links Page... The easy way!

Well I just created a links section to my website, and realized that the information on how I did it might actually be valuable to someone out there. So, here is probably the easiest way to add a Links page to your Drupal website.


  • Step 1: Create a new page with a title called Links. Go down to where it says Input format, and then select PHP code. Now in the body, you can copy and paste the following code.



  • Keep in mind that you will customize the $rows[] according to your links that you wish to provide. When you are done, just hit Submit. When the page is submitted, take note to the URL of your node... For example, my Links are at www.travistidwell.com/node/41

  • Step 2: Now go to the Administer section and then click on Modules. Once the page comes up, make sure that you have the Path module enabled. This will allow us to give our url of "node/4" an alias called "links".

  • Step 3: Now go to the Administer section of your website, and go to URL aliases.

  • Step 4: Once you are in the URL aliases section, you will want to create a new URL alias. Under the section that says Existing system path:, type the node of your links page (example node/41). Now in the other box type links. And then hit Update Alias

  • Step 5: Now go to your Administer under Site Building and hit Menus.

  • Step 6: From there, just simply add a new Primary Link called Links and then link it to your new URL alias and YOUR DONE!!!

Pretty simple, huh?