OREGON STATE UNIVERSITY

How do I set a relative URL in OSU Drupal?

Relative URLs can be set a couple of different ways in OSU Drupal, depending on what Drupal element you are using at a given time.

Relative URLs in TinyMCE Editor:

To set a relative URL in the TinyMCE text editor, do the following:

  1. Select the object you wish to link on.
  2. Click the Chain button in the toolbar.
  3. When the dialog box opens, in the Link URL field, enter http://oregonstate.edu/cws/training/"your-alias", with your-alias being the actual alias of your node.
  4. Click the Insert button.
  5. Click the Preview button to and test your link in the Preview display.

Relative URLs in Block Configuration Panel

The Page Visibility Settings in any block configuration panel allows a Drupal user the ability to show or hide blocks based on a single URL path or URL pattern.  This should always be set relatively.  The format is as follows:

For node references: node/#

Ex: node/10

For aliases: alias

Ex: if there were a node in the CWS Training site at http://oregonstate.edu/cws/training/learn-drupal, the learn-drupal part would be the only thing you would put in.