Hyperlinks
You can add hyperlinks to custom pages within Skillport. These links can point to other custom pages in Skillport or to external documents and web sites. Restrictions and best practices for working with hyperlinks are described in the following sections.
Absolute Paths and Relative Paths
You can use either an absolute path or a relative path for the hyperlinks. A hyperlink must be a valid, fully qualified URL.
An absolute path Uniform Resource Locator (URL):
- Must start with
http:// or https:// - If the URL starts with
http , then the string length should be at least nine (9) characters. - If the URL is in the format
<string>.action , then the length of any string should be at least two (2) characters.
A relative path URL:
- Must start with either
/ or ./ . - Should be followed by a folder name or a file name.
- Should end with a file name (file name is a string that has one occurrence of '.').
Examples of valid URLs:
- goodbyepageurl:
goodbye.action - segment URL:
main.action?rightPanel=learningplan&rightAction=home - segment URL:
/custom/customPage.html - Background Image URL:
./images/Skillport-bckgrd.jpg - segment URL:
http://www.skillsoft.com
Hyperlinks to Non-HTML Documents
You cannot create direct links to non-HyperText Markup Language (HTML) documents (such as a Microsoft Word document). You can save the target document as HTML and link to it, or you can define it as custom content on the Library page in Skillport Administrator.
Hyperlinks to External Documents
You can add links to pages outside Skillport using HTML or HTML with JavaScript. To add a link using just HTML, add the code shown below:
<a href="http://<domain>/<path>/<filename>" target="_blank">Link Text</a>
Example:
<a href="http://office.microsoft.com/support_materials/using_excel.doc" target="_blank">Using Excel</a>
You can also add JavaScript to control the size of the new window with a window.open JavaScript event. The following code opens a window in front of, but not obscuring, the Skillport window:
<a href="#" onClick='window.open("http://office.microsoft.com/support_materials/using_excel.xls","Using Excel","height=800,width=400")'>Link Text</a></li>
Note: You cannot add content to a page by using an Internet Protocol (IP) address.
Pages with Redirection
Some URLs use a redirection in the web page to send visitors to a different URL. These pages fail to launch from Skillport and, when the user attempts to view the URL, an error message displays.
To correct this problem, open the desired site in a separate browser, copy the actual URL from the address bar, and paste it as the custom link URL.
Email Links
Add code for email links as shown below:
<a href="mailto: support@Skillsoft.com">Skillsoft Technical Support</a>
|