Public files

Blocks ::: block_public_files
Maintained by tim st.clair
A clone of the internal private_files block that is at the system rather than user context. Files added to this block are available everywhere the block is visible (to all logged on users).

Public files Stable (2017041600)

Moodle 3.2
Released: Monday, 1 May 2017, 8:52 AM

block_public_files

This Moodle Block is just like the internal "private_files" block, except the files are available to all logged on users. Files added to this block are available in the system context - meaning all users can access them whenever and wherever this block is visible.

Screenshot hosted by Imgur

Only the site admin has the ability to add files. Allows any files types of any file size as per the system specification, including files and folders. Clicking a filename prompts the user to download it.

This is a single-instance only block, and you can configure it's title - but that's about it. Other than that, it works exactly the same as the private_files block. Files are not visible to guests or non-authenticated on users.

Support unlimited file types, sizes, folders, etc.

What it's for

Do you have a standard set of documents that you need to put on all your courses, such as your site policy and assessment guidelines? Are you currently attaching these to a dummy course, or hidden file activities on the front page or as seperate copies in file resources in all your courses? No more - just add a public_files block on your dashboard or wherever, and there you go.

installation

Belongs in /blocks/public_files Install as you would any other plugin (e.g. site admin > notifications)

Requirements

Developed in 3.2, but should easily backport to at least 2.7+

Licence

GPL3, same as Moodle

Version information

Version build number
2017041600
Version release name
Stable (2017041600)
Maturity
Stable version
MD5 Sum
992ca72bcdead8a55448c409313ed776
Supported software
Moodle 3.2
  • Latest release for Moodle 3.2

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit http://yoursite.com/admin to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.