File Manager: Referencing Files from HTML Text Boxes
Referencing Files from HTML Text Boxes
You can create links to files and insert image files stored in File Manager from all text boxes that support HTML. Text boxes that support HTML have a Use HTML check box below them.
References can be created using the HTML Creator or hand-coded HTML. The HTML Creator allows you to browse File Manager to select files. However, if the HTML Creator is not available and you know the location of the files you want to reference, you can use relative paths.
Relative paths can be used to locate files referenced in HTML documents instead of using an entire Uniform Resource Locator (URL). Relative paths establish one point of reference from which other files can be found relative to that point of reference. In File Manager, this point of reference is the root directory, the top level in your File Manager folder hierarchy. All files in File Manager can be referenced using relative paths.
In your course, relative paths must be prefixed with the following syntax:
This syntax directs the link to the root directory of File Manager.
- In a discussion message, if you want to link to an HTML file in File Manager, you would use a tag similar to the following:
<a href="RelativeResourceManager/Template/HTML_File.html">Link to HTML File</a>
- In an Syllabus goal, if you want to link to an HTML file in File Manager and specify that the file will open in a new window, you would use a tag similar to the following:
<a href="RelativeResourceManager/Template/HTML_File.html" target="_blank">Link to HTML File</a>
- In a mail message, if you want to insert an image file from a subfolder of File Manager, such as a folder named Images, you would use a tag similar to the following:
<img src="RelativeResourceManager/Template/Images/Image_File.gif">File Manager: Referencing Files from HTML Text Boxes