Home » Posts tagged 'links'

Tag Archives: links

How do I use anchor links in Drupal?

You can link to a specific place or section on a page using anchor links. Inserting anchor links is similar to adding hyperlinks within your Drupal pages.

First you will need to identify the page section you would like to link to. Once you have located a spot, you can insert an anchor link using the “Insert/edit anchor” icon (it’s shaped like an anchor!) in the rich-text editor.

Name your anchor appropriately. The anchor name should be something short and easy to remember (you should also avoid using spaces or symbols in the anchor name). In the screenshot below, the anchor is named “A”.

Inserting an Anchor
Inserting an Anchor

Now you’re ready to create a link to the anchor you just made. To get the URL you can use to send people directly to your specific page section, add “#anchorname” to the end of a page URL.

How do I insert a link using Drupal?

Note: These instructions apply to the “Basic Content” and “Story” content types.

  1. Make sure you are logged on and in the editing interface for the content you wish to edit.
  2. Highlight the text you wish to be the link.
  3. Click the “Insert/edit link” button. It looks like a chain link.Link Chain
    1. The “Insert/edit link” console appears on your screen.
    2. Insert Links

  4. In the “Link URL” text field, put in the URL for the page you wish to link to.
    • If you’re linking to an outside site, please remember to set the “Target” to “Open link in a new window.”
    • If you’re linking to an internal page, set the “Target” to “Open link in the same window.”
  5. Click the “Insert” button.
    1. The “Insert/edit link” console disappears.
  6. When you are done editing the content, scroll down and click the “Save” button.
    1. The screen returns to “View” mode.
Sites DOT MIISThe Middlebury Institute site network.