Links are used on websites to link to content. In Episerver CMS, the following link types are available by default.
- Page. Links from one page to another on the same website.
- Media. Links to images, documents and other media files stored on the web server.
- email. Links to create an email message with the linked email address entered.
- External. Links to content on other websites or media on file shares.
- Anchor. Links to sections within a page, allowing readers to jump between topics on a page.
You also can use shortcuts, a specific type of link used for navigation and reusing existing website information. See All Properties editing view.
You can create a link in the rich-text editor through drag-and-drop (pages and media files), or by selecting text and clicking the insert/edit link button in the toolbar, which displays the link dialog box.
- Link title displays as descriptive text for the link, such as on mouse-over.
- Open in lets you display the link in a new window, often used for links to external sources.
- Language lets you link to a specific language version for content. Automatic directs visitors to the detected browsing language version.
- Place the cursor in the rich-text editor where you want the link, and drag the desired page from the page tree into the location. The page name becomes the link name (which you can edit, if needed).
- Select the text where you want the link in the rich-text editor, click insert/edit link, and use the Page option to select a page to link to.
Select the text where you want the link in the rich-text editor, click insert/edit link, and use the External link option to enter the web address (URLUniform Resource Locator. Also known as a web address such as http://world.episerver.com.) to the website to link to, such as http://externaldomain.com.
- Place the cursor in the rich-text editor where you want the link, and drag the desired file (PDF, Word and so on) from a Media folder into the location. The filename becomes the link name (which you can edit, if needed).
- Select the text where you want the link in the rich-text editor, click insert/edit link and use the Media option to select a media file to link to.
You can create links to any type of document format, but when upclick a link the behavior depends on the file format and the settings of the computer from which the link is opened.
Select the text where you want the link in the rich-text editor, click insert/edit link and use the External link option to add the path or URL to the file to link to. For a file server, enter the complete path including the computer name, and the filename with file extension. The file storage network location must be properly accessible for this to work. Valid external prefixes are http, https, ftp and file.
Select the text where you want the link in the rich-text editor, click insert/edit link and use the email option to enter the email address to link to. When you click the link, the default email client opens with the email address entered in the address field of the email.
Select the image in the rich-text editor, click insert/edit link and add a link using any of the Page, Media, External link or Email options.
When you add an anchor, first create the anchor and then add the link to it from the link dialog box.
- Select the text in the rich-text editor where you want to place the anchor.
- Click Insert/edit anchorand enter a name for the anchor. Avoid using special characters or spaces.
- Select the text in the rich-text editor where you want to link to the anchor.
- Click insert/edit link and use the Anchor option to select the anchor to link to.
The following examples show common implementations of link functionality on websites, with functionality similar to what is described for the link dialog above.
When you add images to content areas intended for images or blocks and so on, instead of adding the image in the rich-text editor, you can use an image link property which lets you select an image from a folder in Media, automatically placing it properly in the content area. See Adding and editing images.
A link collection is a property where you can manage a group of links.
You can create links by dropping pages or media files in the link collection area, or by creating links through the link dialog. You can create links for pages, media files, external sources and email addresses. You can move links to change the order in which they appear.
You also can edit the displayed name of the link.
Linking to catalog entries
If you have Episerver Commerce installed, the link dialog box contains an option to select items from the product catalog when you create links. See Manage content in the Commerce