Display HTML pages within the LMS
Subjects in the LMS may include external links to HTML files as menu items. If the HTML file is not set to open in a new window it will be displayed in the entire area below the top frame, obscuring the subject menu. If you want the HTML page to open within the LMS subject, but not obscure the subject menu you will need to create a blank page that includes an iframe.
To assist you in creating the iframe, a package is available to import into the subject/community. With three quick steps, you can have your HTML displaying perfectly; download the package, upload to your LMS subject/community, and customise the package to point to your HTML file.
Download the package
- Log into the LMS.
- Click the Manage Content tab.
- In the left frame, click Institution Content >> Institution.
- In the right frame, click the Packages folder.
- Download the iframe.zip file and save it to your computer. Note: Do not open the zip file.
Upload the package
- Log into the LMS and open the subject of interest.
- From Control Panel select Packages and Utilities >> Import Package / View Logs.
Note: This will load an editable version of the subject.
- Click Import Package.
- Click Choose File and select iframe.zip from your computer.
- Click the checkbox for Content Areas.
Leave all other checkboxes unchecked.
- Click Submit then wait 5-10 seconds for the package to be uploaded.
- Click the Refresh button () at the top of the subject menu.
- Confirm the menu now includes iframe as the final menu item. If not, wait another few seconds and try again.
Customise the iframe
The iframe menu item is an imported Blank Page. HTML code was added to create an iframe window, in which the targeted HTML file will be displayed. This HTML file is presented it in the right frame without obscuring the subject menu. For reference, the HTML code embedded in iframe is:
<p><iframe width="100%" height="1000" src="https://app.lms.unimelb.edu.au/bbcswebdav/pid-4380721-dt-content-rid-6129738_4/xid-6129738_4"></iframe></p>
The instructions below assume you already have a web link that is not displaying correctly.
If you are adding a new web link you need to know the URL of your web page before you can customise the iframe. If the page is stored in the Content Collection, this information can be found in the 360 view of the file. Copy the URL of the web page. You can then start at step 5 and omit steps 13-14.
- Identify the web link item in the subject menu.
- Click the pull-down menu next to the menu item and select Web Link.
- The URL will be automatically highlighted. Click Ctrl+C to copy the URL.
- Click Cancel to return to the subject.
- On the left menu, click iframe.
- Click the HTML symbol in the page editor to enter HTML mode.
- Set the width of the iframe to best suit your content.
Note: We recommend leaving the default width="100%".
- Set the height (pixels) of the iframe to best suit your content.
Note: We recommend leaving the default height="1000".
- Locate the default URL included in the iframe code: src="https://app.lms.unimelb.edu.au/bbcswebdav/pid-4380721-dt-content-rid-6129738_4/xid-6129738_4"
- Replace it by pasting the URL you copied in Step 3.
Note: The URL should start with HTTPS, not HTTP, otherwise the page will not open.
- Click Submit.
The iframe on the menu should now show the HTML page.
- Click Edit Mode = ON.
- Click the pull-down menu next to the original web link and select Delete.
- Click OK on the pop-up message to confirm.
- Click the pull-down menu next to iframe menu item and click Rename Link.
- Rename iframe to the name of the original subject entry point menu item (eg: Subject Home).
- Move the iframe menu item to the position where the original subject entry point menu item was located.
Note: If the original web link was your subject entry page, you can now set this for the new page via Control Panel >> Customisation >> Teaching Style.
- Click Edit Mode = OFF.
- Click the subject name in the navigation breadcrumbs and confirm the HTML page is now shown without obscuring the menu.
Even if you do all of the above steps, the HTML file will not display within your subject for your students if you have not set correct permissions; see the user guide for more information.
This guide was last updated 04 Aug 2018.
Report any errors or omissions in this guide to email@example.com