URL resource settings
From Carleton Moodle Docs(Redirected from 33/en/mod/url/mod)
Adding a URL resource to your course
- Turn editing on.
- From the the "Add an activity or resource" link (or, if not present, the "Add a resource" drop down menu),choose URL. All settings may expanded by clicking the "Expand all/Collapse all" link top right.
- Give your URL a name and type (or copy/paste) the URL into the External URL box. If you need to search for the correct URL, click the Choose a link button. When you find and select your link,it will be automatically pasted into the box.
- Give the URL a description if you wish, and tick the box to display that description on the course page if needed.
For Display you have the following options. If you don't see an option, ask the administrator to enable it in Site administration >Plugins <Activity modules >URL. You can also have 'in frame' or 'New window' but these must be enabled by the administrator.
- Automatic - Make the best guess at what should happen (probably what is wanted 99% of the time).
- Embed - Show the Moodle page with heading, blocks and footer. Show the title/description of the item and display the file directly in the page as well
- Open - No Moodle heading, blocks, footer or description - just show the file in the web browser (e.g. shows image, PDF, flash animation, taking up the whole browser window)
- In pop-up - Same as 'Open', but opens a new browser window to show this file (without the Moodle heading, blocks, etc) - this browser window also does not have all the menus in it. If you select this one, then you can specify the pop-up width and height.
This section allows you to pass internal information as part of the URL.
This is useful if the URL is actually an interactive web page that takes parameters, and you want to pass something like the name of the current user, for example.
Another use is to create stable links that updates in each iteration of the course, for example:
if you want to link to the student's user report, then you add the base URL to the External URL field, and then in the URL variables section, add 'id' to the first field and select 'id' from under the site heading, and then save changes. The result is a URL that always points to the student's user report.
A further use includes displaying all forums in a site, by using the base URL then adding add 'id' to the first field and selecting 'id' from under the site heading. Another use makes use of mailto:email@address. URL variables could then include the subject parameter followed by the 'Site full name'. E.g. if you wanted to email a teacher who taught multiple courses, if a student clicked the URL then the email would automatically fill the subject field, which would help the teacher to identify which course the student was in.
Common module settings
Restrict access/Activity completion
(These settings are collapsed by default)
Drag and Drop a URL
Alternatively, if an administrator has enabled the experimental feature drag and drop upload of text/links in Settings > Site administration > Development > Experimental > Experimental settings, a link can be dragged into a section of the course and given a name, as shown in the images below.
- The Moodle URL Resource MoodleBites video on YouTube