wysiwyglinks.gif

The WYSIWYG editor makes it easy to add links to a body field.

The WYSIWYG editor makes it easy to add links to a page.

  1. Select the text you want to be a link (the "Make Link" and "Break Link" buttons will be come active).
  2. Click the "Make Link" button.
  3. Enter the URL that you want to link to in the "Link URL" field of the box that pops up.
  4. If you want to remove a link, put your cursor anywhere in the link and click the "Break Link" button.

It's also easy to add "anchors" to pages (places on a page that can be linked to).  Add these using the "Anchor" button.

Link Format

External Links

A link to an external website is in the format http://www.website.com.

Relative Links

All links to www.grinnell.edu pages entered in the WYSIWYG editor should start with a forward slash ("/") and include the full path that follows http://www.grinnell.edu

  • For example, to link to:
    • http://www.grinnell.edu/offices/dean
  • You would enter:
    • /offices/dean

If you are entering a relative link into a Drupal field other than the WYSIWYG, omit the first slash (e.g. "offices/dean").

Note: There is no trailing slash on Drupal URLs.

Caveats

  • Remember, never use "click here" as link text or any other uninformative text.  Use link text that makes sense outside of the context in which it appears.  Think about linking to the content rather than a page or website (all links are to a page or website).
  • In many cases, there may be other ways to link to something or a field that creates a link.  Completely fill out a content type's fields before making links.
  • If you find yourself making the same link on many pages, this is probably inefficient and prone to breaking.  Talk to the Web Guys about different solutions for creating alternate forms of navigation other than the standard top and left-side menus.
  • Anchors should be used sparingly and only in specific cases (such as the Drupal Glossary) where the content should not be spread across pages.  Anchors may be a sign that your page is too long.