Information Resources & Technology (IRT)

Add Body Links

This tutorial discusses placing and editing links in the body of your Web page. Links in the Breadcrumbs and Left Navigation areas are discussed later.

Watch Demo

Step 1: "Browse to Web Page"

  1. In Contribute, View and Edit any page; If you are training in the MedWebTraining practice site, browse to the New Page created in the previous exercise, if not already viewing it
  2. Place your cursor where you want the new link to go in your text. OR select a piece of text or image to link from. Click the Insert Link button
  3. Select "Browse to Web Page" to access the Link Properties dialog box
  4. Type in your link text; if you selected something before inserting, this area is disabled
  5. Click on the "Browse" button
    Contribute provides a small browser window, usually pre-populated with your site's Home page or most recently worked page. This is a true Web browser, and you can type in any address on the Web, view and select a page or site to link to.
  6. Find your home page (click on the home page link if you're not sure), then click "OK."

  7. When you return to the Insert Link panel, you have a small preview of your selected page

  8. Click on the "Advanced options" arrow to reveal more link options:

    • "HREF" shows the actual link URL that will be used within the page's code.
    • "Section anchor" allows you to select an anchor link from within the body of the target page, to take the user directly to a particular page section. If any anchors are detected on the page, a list is provided in the pull-down.
    • "Target frame" allows you to direct the browser to create a New Window for your linked page. You can usually leave this as Default.
  9. When you are satisfied with your link settings, click OK. Your linked text has been inserted into the flow of your text
  10. In order to validate your new link, you will need to Publish the page, then view it in your regular Web browser
  11. Move your cursor in the text, or select another bit of text or image to attach a link to; repeat 1 - 8, but this time click the "Choose" button in item 3 instead of "Browse," and set the link to one of the stationery files
  12. Validate your work in a browser by viewing the page and clicking the links
Watch Demo

Step 2: Edit an existing link

Occasionally you will need to revise a link. You can edit the link text by selecting it or placing your cursor within the linked area and typing. To change the link URL:

  1. Place your cursor anywhere within the linked text

  2. Use the Format menu to select the "Link Properties..." command

  3. In the Insert Link panel that results, you can edit the URL of the link, browse to a new page, and/or manage the advanced options for the link. Click OK when you are done.

  4. Click the Publish button
  5. Validate your work in a browser by viewing the page and clicking the links

Link methods not to use

There are two link methods we don't recommend: New Page and Email Address.

Say NO to blank New Page

The Insert Link method "Create New Page" is intended to allow you to create a blank new page within your site. With very few exceptions, there is no use for a blank, unformatted page in your site. Every new page in your site should be created from an existing functional page in the Stanford Medicine format, such as a stationery file, or any working page. Please see Create a New Page for more details.

Mailto = Spamto

Mailto email links, where the URL follows the form "mailto:myaddress@stanford.edu," usually result in spam for the owner of the address, as mailto links are easily harvested.

In the past, IRT used page-level JavaScript encryption code which can not be edited or deleted with Contribute. If you encounter objects of this kind, you can request removal or update via Web Help.

For new email addresses, use the following technique.

Step 3: Add Spam-proof Email Links

Through a combination of text, link and CSS style, you can provide functional mailto links without risking spam.

To create a spam-proof email link to “youralias@stanford.edu”:

When published, the browser will rebuild the link so that “Center Info” links to “mailto:youralias@stanford.edu" without exposing the address to Spam.

Variations

Optional: Link to a Downloadable File

If desired, you can jump ahead to the exercise to Add Downloadable Documents, including a body link to the downloadable file.

« Previous | Home | Next »

Stanford Medicine Resources:

Footer Links: