Note: You are currently viewing documentation for Moodle 3.8. Up-to-date documentation for the latest stable version of Moodle may be available here: mod/file/mod.

mod/file/mod

From MoodleDocs
Revision as of 10:58, 1 June 2010 by Helen Foster (talk | contribs) (display options with thanks to Davo Smith http://moodle.org/mod/forum/discuss.php?d=151196, templates)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Moodle 2.0The file resource module is available in Moodle 2.0 onwards.

Display options

  • 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 (good for images, flash animations, videos?, PDFs).
  • Force download - user clicks on the file, then the web browser pops up with the 'where do you want to save this file' box.
  • 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 and address bar in it.

The following additional options are only there if you enable them via Site administration > Plugins > Activity modules > File:

  • In frame - show the Moodle heading and the file description, with the file displayed in a resizable area below (images, PDF, flash, etc. supported).
  • New window - very much like 'in pop-up', but the new window is a full browser window, with menus and address bar, etc.

All of the above is true of items that can be displayed inside the browser directly (e.g. images, text files, PDFs (with plugin)). If the file cannot be displayed within the browser (e.g. word documents, without a suitable plugin, or other files that need to be loaded by an external program), then the pop-ups or frames, etc. will be created, but then the browser will take over and ask if you want to save the file.

To summarise:

  • Do you want Moodle to sort it all out for you? - Automatic
  • Do you want to force the user to save the file (or open it in a program on their desktop)? - Force download
  • Do you want to show the file as part of the Moodle page (images, PDFs, videos)? - Embed
  • Do you want to show the file in the browser, but without the Moodle page decorations (images, PDFs, videos)? - Open
  • Do you want that, but in a new window? - In Pop-up (or possibly 'New window')
  • Do you want to use a horrible bit of non-strict HTML that should never be allowed in polite company? - In frame

See also