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.

@stevew99999

  • @MRFranklin20 switch back and forth for now. Words on paper is good. 5 years 29 weeks ago
  • Remote iOS controlled pan-and-tilt base for an iPhone? Yes, please! http://t.co/aUz8WxKI Need before next business trip! 5 years 29 weeks ago
  • @Holloboles Just a man. With a man's courage. Nothing but a man. But he can never fail. 5 years 29 weeks ago

Premium Drupal Themes by Adaptivethemes