The WYSIWYG editor makes it easy to add links to a page.
- Select the text you want to be a link (the "Make Link" and "Break Link" buttons will be come active).
- Click the "Make Link" button.
- Enter the URL that you want to link to in the "Link URL" field of the box that pops up.
- 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.
A link to an external website is in the format http://www.website.com.
- For example, to link to:
- You would enter:
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.
- 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.