Difference between revisions of "File or website link"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: File or website link.

(link to Moodle Docs Spanish)
(Window: new window options)
Line 43: Line 43:
 
==Window==
 
==Window==
  
These settings can be hidden/shown by clicking the button labeled Hide settings or Show settings.
+
Usually, resources are displayed in a normal framed window with the Moodle navigation controls in the top frame. If you choose, you can remove this frame and have the resource open in a new window.
  
Usually, resources are displayed in a normal framed window with the Moodle navigation controls in the top frame. If you choose, you can remove this frame and have the resource fill the window like a normal web page.
+
To display a resource in a new window:
Determine the size window you wish to open.<br>Many people still use an average screen resolution of 800x600. In most cases it's best if you initially size your window a little smaller than that, like 600 high and 480 wide.<br>If you leave these fields blank then the new popup window will be exactly the same size as the window they clicked on to get the popup.
+
# Click the Show Advanced button in the Window area.
 +
# Select "New window" from the Window drop-down menu.
 +
# Select the options for the window:
 +
;Allow the window to be resized
 +
:Checking this will allow the user to change the size of the window after it has opened. Unless you have a specific reason for not allowing the user to resize, you should leave this checked.
 +
;Allow the window to be scrolled
 +
:You can prevent the user from scrolling the new window. Again, unless you have a specific reason to prevent the user from scrolling, leave this checked.  
 +
;Show the directory links
 +
:This will display the user’s bookmark or favourites bar in his browser.
 +
;Show the location bar
 +
:You can hide the address bar, and thus the site’s URL, in the pop up by unchecking this box.
 +
;Show the menu bar
 +
:The menu bar is the browser menu that allows the user to set bookmarks, print, view the page source, and perform other browser functions.
 +
;Show the toolbar
 +
:The browser toolbar has the back and forward buttons, as well as the reload and stop buttons.
 +
;Show the status bar
 +
:The status bar is the lower area of the browser that shows how much of the page has loaded and the target of a link.
 +
;Default window width and height
 +
:You can set the size of the new window to match the size of the linked page.
  
 
==Parameters==
 
==Parameters==

Revision as of 13:04, 7 April 2008


Adding a link to a file

Although it's easy to generate content directly in Moodle, you can also upload any type of electronic file you like. All you need to do is make sure your students can access it with the appropriate software on their computers.

Once you've added a file to your files area, you can easily add it as a resource for your students.

  1. In Editing Mode, select "Add Link to File or Web Site" from the Resource menu from the content block where you want to add the link to the file.
  2. On the Edit page, click the "Choose or upload a file" button. A new window will pop up with the files area directory structure.
  3. Find the file you want to add in the files area. You can also upload a new file here if you'd like.
  4. On the right side of the files list, you will see a "Choose" link in bold. Click that link. The Files window will close, and the path to the file will be entered into the filename.
  5. You can choose to display the file in a new pop-up window. Most of the time, you won't need to worry about this with uploaded content.
  6. The name of the resource will now be an active link in the content block.

Adding media content

Adding media content can help you communicate some ideas and processes more easily than text alone. Imagine trying to teach a language without learners able to hear it spoken. Or trying to learn how volcanoes work with either seeing a video or an animation. Fortunately, Moodle makes it easy to add rich media content to your course. The Moodle media filters will automatically recognize your media type and put the right sort of link in to your web page so students can access it easily.

Note: If these instructions don't work, contact your system administrator and ask if the media filters are enabled in the filters settings.

Media content may be added using the same steps as for adding a link to a file.

  1. In Editing Mode, select "Add Link to File or Web Site" from the Resource menu from the content block where you want to add the link to the media file.
  2. On the Edit page, click the "Choose or upload a file" button. A new window will pop up with the files area directory structure.
  3. Either upload the media file or if you uploaded it previously, find the file you want to add in the files area.
  4. Click the "Choose" link. The Files window will close, and the path to the file will be entered into the filename.
  5. The name of the resource will now be an active link in the content block.

MP3 files are automatically embedded in a streaming player made with Flash.

Summary

You may type the summary of the resource here. This will be displayed on the resources index page. The summary is also displayed below the Moodle navigation controls in the top frame, if the window settings are set to open the linked resource in frames.

Location

Type in the url of the file or web page here. You may use the two buttons below to help you.

  • Choose or upload a file... - If you click on this button, a popup window will appear with the course files. You will be able to browse the files and choose (option located to the right of the file) the one which you want to make available as a resource. If the file is not there you can upload it first.
  • Search for web page... - If you click on this button, a popup window will appear with the Google search engine. You can use Google to search the web for a webpage which you want to make available as a resource.

Window

Usually, resources are displayed in a normal framed window with the Moodle navigation controls in the top frame. If you choose, you can remove this frame and have the resource open in a new window.

To display a resource in a new window:

  1. Click the Show Advanced button in the Window area.
  2. Select "New window" from the Window drop-down menu.
  3. Select the options for the window:
Allow the window to be resized
Checking this will allow the user to change the size of the window after it has opened. Unless you have a specific reason for not allowing the user to resize, you should leave this checked.
Allow the window to be scrolled
You can prevent the user from scrolling the new window. Again, unless you have a specific reason to prevent the user from scrolling, leave this checked.
Show the directory links
This will display the user’s bookmark or favourites bar in his browser.
Show the location bar
You can hide the address bar, and thus the site’s URL, in the pop up by unchecking this box.
Show the menu bar
The menu bar is the browser menu that allows the user to set bookmarks, print, view the page source, and perform other browser functions.
Show the toolbar
The browser toolbar has the back and forward buttons, as well as the reload and stop buttons.
Show the status bar
The status bar is the lower area of the browser that shows how much of the page has loaded and the target of a link.
Default window width and height
You can set the size of the new window to match the size of the linked page.

Parameters

Note: parameters are quite an advanced feature. Some knowledge of how web forms pass information to web pages is required.

The parameter settings are completely optional, and are only useful when you need to pass some Moodle information to the resource file or web site. If you define any parameters they will be passed to the resource as part of the URL (using the GET method). The left column allows you to choose information to send, and the right column allows you to give it a name. Note that the user information will be from the user who is looking at this resource, and the course information is from the course that this resource is part of.

An example is to send users to the URL http://www.google.com/search. This is the page that returns search results for your Google searches but, if you go there directly, without specifying what you wish to search for, you just get the standard Google search screen. Google expects a parameter called q that tells it what to look for. If you select a parameter, any will do but in this example we'll use Surname, and give it the name q then every user will see a page of search results based upon the Surname stored in their profile.

A slightly more useful example can be seen on the front page of Moodle.org. The Documentation link (second from the top on the left-hand side) uses paramaters to add the language specified in the user's profile to the link. Try changing your language before clicking on the link and see where you end up. (Bear in mind that if no MoodleDocs exists for a language, you will be redirected to the English documentation).

In general this feature provides a powerful way to connect Moodle to external web resources that are logically divided up by Geographic Region, Course or User details etc. For example you may already have all your past course papers available ordered by course code. This allows a standard course template to be created that points to different places when the course code is changed. If the external source cannot accept connections in the standard format that Moodle provides, and you have access and control over the external source, then a server add-on called mod_rewrite could be used to make them interoperate.

Visible to students

You can hide the resource from students by selecting "Hide" here. It is useful if you wouldn't like to make the activity available immediately.

See also