Importing a website into your Moodle Course


UW-Madison has adopted Canvas as its single, centrally supported learning management system. As of 6/1/2018, support for Desire2Learn (D2L) and most Moodle courses has been discontinued. Access to those courses has permanently ended. However, certain Moodle courses that are part of the Adanced Quizzing Content Functional Gaps project are still available on Moodle. Those courses are located on the Moodle Extension site.

Importing an existing set of web pages with CSS and JS to function as a single "site" within your moodle course.

This is more of an advanced topic as to be able to even have the website to import you must be able to create a website using a tool like Dreamweaver or on your own with HTML,CSS,JS.

  1. It is possible to host a website within Moodle by first making sure all links within your web pages are relative to each other.  What we mean by this is if you have an index.html page and a book.html page in the same directory, as a link to the book.html page from the index page you have "/book.html".  If this is not done, links within the pages will not work.
    1. Also make sure that paths to CSS and JS are also relative
  2. After this is done, you will need to zip up the root directory of your site into one zip file
  3. Go into your Moodle course and add a File resource activityFile

4. Add the zip file as the file for this resource.


5. After that is uploaded, select the zip file in the file picker, and then a popup window will appear.


6.  In the popup you'll be able to select "unzip".  After unzipping you'll see a folder in the file picker.

7. Navigate into the folder and select your "index" page, whether that's named index.html or something else.


8. After clicking on that, another window will appear, in which you can select it to be the "main file".
Making it the main file means that this is what Moodle will open when a user clicks on the resource.


9. After that you can go through the rest of the normal Moodle resource options in the form.  
We recommend the "In frame" display option as this works the best for websites within Moodle


-- Individual files can be updated after this process is done as well so that you don't need to re-upload the whole zip file.
-- Reference  
add file resource  

Keywords:import, website, external site, resource   Doc ID:46272
Owner:Matt P.Group:Moodle
Created:2015-01-16 11:34 CSTUpdated:2018-03-05 16:56 CST
Feedback:  8   3