Skip to main content

Configure the Links module

April 30, 2010 by Steve

From the Links project page, the "Links Package is a multi-module set for managing URL links in a master directory, and attaching them in various ways to your content pages." First, this allows you to attach "related links" to your nodes. There are other ways to do this, but Links allows you to attach an arbitrary number of links, from zero to many, and have the layout work nicely. (This was important to me.) Links stores all those URLs in a database, and if there is ever a duplicate, it manages that gracefully. It also goes out and checks the links periodically, notifying you of any broken links. It also enables summary pages of links that let you see them all at once, ordered by Taxonomy.

Links is one of those modules where the module name and menu names don't line up well. In Site Building > Modules, you'll find four related modules:

  • Links (the API, required for the others)
  • Links Administration (enables a link management page)
  • Links Related (enables the "related links" attached to nodes)
  • Links Weblink (the weblink content type)

Since we are adding a new content type, we have a few settings to adjust. (This will be a good reference list for the next time you add a new content type.)

First, let's apply the appropriate Taxonomy. I want to be able to put Weblinks into Sections and tag them with Topics. Under Content Management > Taxonomy, click on "edit vocabulary" for Sections. Under content type, check the checkbox for weblink, and save out. Do the same for the Topics vocabulary. Now weblinks are included in the Taxonomy structure of the site.

Next, I want to set the default publishing options for weblinks. Under Content Management > Content Types > Edit weblink, you can set the default publishing options for your content types. I set the defaults to match the settings I used for Story and Page nodes. Don't forget to save your settings. Now when I go to Create Content, one of my options will be "weblink", and the defaults will be set how I want them.

For notes on setting up the URL Alias for weblinks, please see how to Configure the Path and Pathauto modules.

You may want to give Anonymous users permission to see the weblinks. (Time saver: here's the step where I set all the permissions at once.) If you want to set them now, go to User Management > Permissions, find the Links Weblink module permissions, and select "view weblinks" for Anonymous users. Save your changes.


  • @rosamundlannin I make regular chili but use that veggie crumble meat substitute stuff. 7 years 39 weeks ago
  • @Snarky_Geek Since I was awake at 4:30 this morning, and finally just gave up and went to work around 5:45, I feel your pain. 7 years 40 weeks ago
  • One of the Chicago office dogs really wants to play this morning @the_nerdery, keeps bringing toys over to try to start something. 7 years 48 weeks ago

Premium Drupal Themes by Adaptivethemes