Best practices and details on how to insert links into your pages. There are four different types of links you can insert in your page: CMS Content, URLs, Email Links, and Anchor Links.
Best Practices
- Links should always be contextual: they should be named the same as the title of the page they are pointing to. For instance, Centre for Extended Learning points to the Centre for Extended Learning page.
- If your page is internal, within the CMS, use the target _self (this will open the link in the same window)
- If your page is external, linking to a page outside the CMS, use the target _blank (this will open the link in a new window)
- Copying/Pasting links: In general, it is best to avoid copying and pasting links in the CMS. This could introduce errors, so we recommend creating new links on your page.
Inserting a Link
- Find the text that you would like to convert to a link, or type the link title onto the page if you haven't entered it yet.
Remember: this text should be the same as the title of the page you are pointing to. - Select the text to be converted to a link.
- Click on the 'Insert/Edit Link' button.
3. A dialog box opens and it asks: '1: What type of link is this?' Choose from:
- CMS Content (links within your course)
- URL (link to external webpage)
- Email link
See the instructions for each option below.
For CMS Content:
- Click on the blue 'Browse' button
- Navigate to the page you want to link to
- Enter a 'Target' of _self (to open link in same tab)
- Click 'Save' to return to the page editor.
For URL:
- Enter the 'URL Address' in the field
- Enter a 'Target' of _blank (to open link in new tab)
- Click 'Save' to return to the page editor.
For 'Email link':
- Enter the 'Email Address'
- Click 'Save' to return to the page editor.
Video HowTo: Inserting a Link
View this video for a visual on how to insert each of the three types of links
(Note: the video has no audio).
Editing a Link
To edit an existing link, place your cursor anywhere in the link and click on the Insert/Edit Link button. This will open the dialog box, where you can make any changes necessary.
Removing a Link
To remove a link, place your cursor anywhere in the link and click on the Unlink button. This will remove the link.
Adding Icons to Links
If your link is to an external site (that opens in a new window), you must add an icon to the end of your link. For accessibility and usability reasons, this icon clearly indicates to users that the link will open in a new tab. To add the icon to a link:
- Follow the instructions above on inserting a URL link.
- Make sure '_blank' is entered in the 'Target' field.
- In the dialog box, click on the 'CSS Class' field.
- Type 'cel_z-icons-new-tab' and hit enter (or select it from the dropdown menu).
- Click 'Save' to return to the page editor.
Working with Anchor Links
Anchor links are useful to point users to a specific section of your page. This can be used on the same page, or on other pages. This requires two steps:
- Setting the anchor (your destination)
- Inserting the link to the anchor.
1. Setting the Anchor (your destination)
- Place your cursor at the beginning of text you want as the anchor link (do not select any words), and click on the anchor button in the top bar.
- In the dialog box, add the Name of your anchor. (Note that the anchor name cannot contain any spaces - choose to consistently use underscores, dashes, or additional capitalization, as needed.)
- Click 'Save' to return to the editor.
2. Inserting the link to the anchor
- Select the text you want as the link to the anchor, and click on the Insert/Edit Link button in the top bar.
- Link to an anchor on current page:
- In the dialog box, set the type of link to 'Anchor on this page'.
- Enter the 'Title' (same as Anchor name)
- Enter the 'Target' to _self
- Select the Anchor from the dropdown list (your previously named Anchor will appear here)
- Click 'Save' to return to the editor
- Link to an anchor on another CMS page:
- In the dialog box, set the type of link to 'CMS Content'
- Click on the blue 'Browse' button
- Navigate to the page you want to link to
- Enter the 'Title' (same as Anchor name)
- Enter the 'Target' to _self
- Select the 'Anchor' location from the dropdown list
- Click 'Save' to return to editor
- 'Save' and Workflow>'Submit and Approve' to save your page once you have completed your changes.