Drupal: Link to Other Pages on Your Site

The following instructions are for websites using the default UMN Drupal Enterprise or Drupal Lite configuration.

Description

In the University's standard Drupal installation, it's easy to create links to other content in your site. When you are creating links to other content on your site, you should always use a Relative Reference, instead of an Absolute Reference

  • http://site30.drupaltraining.umn.edu/faculty/barbara-rozycki is an Absolute Reference
  • /faculty/barbara-rozycki is a Relative Reference 

The LinkIt tool makes it easier to create relative references: you can start typing the title of the content, and then the tool will insert the correct relative reference.

 

Instructions

To create a link to another piece of content on your site

  1. Log in to your site
  2. Find the content you want to add a link to
  3. Click the Link button in the wysiwyg toolbar the link button in the wysiwyg editor is highlighted
  4. Start typing the Title of the content
    • After typing a few letters, the tool will present a list of matches
  5. Select the content
    • In the Link URL field, it will enter the correct relative reference
  6. Click the Insert Link button
the link dialog box. the word Drupal is entered in the link url field, and the auto complete shows three pieces of content

Formatting the Link

After selecting the Link URL, the insert link palette expands to display additional formatting options.

  • Select the Green Checkmark to format as a standard link (underlined text)
  • Select one of the link button formats below and then select the Green Checkmark

Additional Information

Note: The default behavior for links inserted using the Link tool is to open in the same window. If you want the link to open in a new window

  1. Select the linked text in the editor window
  2. A modal pop-up is displayed showing the link destination, an Edit button, and a Remove Link button.
    the modal window is displayed when the link is selected.

Last modified

Changed

TDX ID

TDX ID
2618