Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Page content.
The page content is the typical place a student sees in a lesson to receive information-content.
Moodle is very robust when it comes to placing content before a student. It has both an HTML source code and a friendly WYSIWYG interface with standard icons for different editing functions.
The toolbar should be familiar to users of word processors. The toolbar creates HTML code for the user. It is possible to see or reveal the code on the page with the icon that looks like <>. More help with HTML can be found here.
Brief review of text editing features Fonts, Centering, etc Special Characters Colors Paragraph Clean Word HTML
The Image Icon will assist you in creating HTML code. The Image Icon on the tool bar brings up this popup window. We should mention here that JPG, GIF and PNG files are recognized Moodle images file types.files.
- The basic steps are to locate the file
- Using the File Browser Window for previously uploaded files, OR
- Upload a file
- Locate and click on the location the file will go to in the File Browser Window
- Use Browse button to locate file (local machine)
- Use Update button to place file in File Browser Window,
- click on file in File Browser Window to place file in "Insert URL"
- Enter Alternative Text
- Optional Use Layout, spacing and size parameters
- Best practice is to put all of a single activities images in a folder such as "Lesson Example"
- It is possible to zip a local folder with images and upload it to a course lesson. See files Click here for more information on files.
- Remember to use the Refresh feature on your browser if the image does not appear to change in the Moodle Lesson.
When you browse for a local course image file its URL will be inserted like:
where /5/ is the numerical ID of your course. This will work fine IF nothing is changed. But if you change your domain name, your moodle folder name, the image link won't work. If you backup and restore the course as a new copy or on another server, the link won't work.
If you shorten the URL to:
- /moodle/file.php/5/courseFolder2/pic1.jpg it will work even if your domain is changed, but not if restored as new course.
- courseFolder2/pic1.jpg it will work even if your course file is backuped and restored as a new course, even on another server.
Site file folder linking: (on Moodle 1.8.2 at least) The URL to files there always contain /1/ like http://www.yourMoodle.net/moodle/file.php/1/siteFolder2/test.jpg Anyone with the URL can access files there. Files in course file folders are only accessable by people logged in an belonging to the course.
A link like: /moodle/file.php/1/siteFolder2/test.jpg will work, and should even work if the site is mirrored on another server (AND the moodle folder name is not changed).
Links that don't work are
../1/siteFolder2/test.jpg and /file.php/1/siteFolder2/test.jpg
Linking a URLs to text is one way to point to multimedia resources and the appropriate multimedia player installed as a Multimedia plugin. Please refer to the specific type of media in MoodleDos for more detailed information about linking.
Embed a Flash (captivate) File in a Lesson
It is possible to embed your captivate simulations in the lesson page.
Go to your file space and copy the url of your swf file onto your clipboard. Go back to your lesson page and add the following to the code-view editor.
<iframe src="paste_url_here" frameborder="0" scrolling="0" width="400" height="550"></iframe>
That should do it.
Links & Anchors
The Link (chain icon)
An HTML link creates a path to external, internal or the current page. The icon saves writing code. One method is to copy the address bar from the location you want, click on the link icon,then paste it URL. Another method is to press the Browse button. This will take you to the Files area of the course. From here it is possible to select an existing file or to upload a new file and link to it.
- URL the web based address. Note a course file has a URL address via the browse button
- Title - what appears when the mouse rolls over the link
- Target - What kind of window should be called up.
- Anchors - A pull down list allows you to select an anchor.
An HTML anchor identifies text within a page which can be referenced by a link. To use the Anchor, highlight the word, then click on the Anchor icon. Give the anchor a name. Anywhere on the page, highlight the word you would like to link to the Anchor. Use the Link icon and the pull down menu to find the correct anchor.
Add, edit, adjust
What is that line at the bottom of Page Content show?
Description of question or branch page contents
- Add an icon to a title bar, such as a course or site catagory
- Insert the image into the brief description, toggle HTML source code, copy the code for the image and paste it in the title bar.
- It is possible to adjust the size via the width and height parameters, the alternative text and title parameters in the code are not needed.
- Example of code
<img width="25" vspace="0" hspace="0" height="25" border="0" src="http://demo.moodle.org/file.php/4/f1.jpg"
inserted before text in course title gives this
- Flash inserting them in content of questions or branch pages
- Index of Help Files - Scroll down to "Reading and Writing"
- Files - Uploading, creating, moving, deleting course files and folders