## Filters: Media collection embed

filter_mediagallery
Allows you to have carousels of a media gallery or galleries displayed in your course in labels and such.
159 sites
2 fans
Moodle 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1

When used in conjuction with the TinyMCE plugin (https://moodle.org/plugins/view.php?plugin=tinymce_mediagallery) this plugin allows you to have carousels of a gallery or galleries displayed in your course in labels and such.

This plugin requires the Media collection activity be installed (https://moodle.org/plugins/view.php?plugin=mod_mediagallery).

This plugin was written by Adam Olley <adam.olley@netspot.com.au> for the University of New South Wales (http://www.unsw.edu.au).

Note: for the carousel to be fully functional, your theme needs to have jQuery included on the page(s) the filter displays the carousels on. If you don't have jQuery loaded, the carousel will still appear, and clicking the images will still take you to the gallery.

### Sets

This plugin is part of set Media gallery.

### Contributors

• Wed, 21 May 2014, 9:18 AM

Many thanks for sharing this plugin with the Moodle community.

Please review the validation results and fix all of the issues mentioned. These changes are typically pretty easy to make but if you have any questions just let us know.

Warning Maturity information ($plugin->maturity) not found in version.php Warning Release name ($plugin->release) not found in version.php
Warning README.md found. It is not recommended to have extensions other than .txt or .htm because file type may not be recognized by OS. You may choose the 'Rename README.* to README.txt' option to rename this file to README.txt (click 'Back' if form is uneditable)

I am less concerned about the README notice as I believe we are preparing to allow for the .md file.

It appears from the README that this plugin is also dependent on the tinymce component so that should probably be added to the version.php file. I had inquired in the media gallery activity module if you were planning on having versions for Moodle 2.6 and later. If you get to 2.7 it may be worth thinking about creating an Atto plugin as well.

If you think appropriate it would be nice to have some type of screenshot. I was successfully able to install the plugin but did not really test it. In part, because I was not exactly sure how to test it so it may help to make the documentation about how to use the filter.

The code checker showed no warnings or errors:

Files found: 4

filter/mediagallery/lang/en/filter_mediagallery.php
filter/mediagallery/db/install.php
filter/mediagallery/version.php
filter/mediagallery/filter.php
Well done!

As mentioned previously because of the licensing issue with https://moodle.org/plugins/view.php?plugin=mod_mediagallery I am going to mark this as needing more work. Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony

p.s. - I noticed that in some places things are referred to as Media collection and other places as Media gallery. I try to encourage consistency unless there is a method to the madness that I have missed.

• Wed, 21 May 2014, 10:50 AM
Hi Anthony,

I've addressed all the issues you've raised in the version I just updated.

As discussed "media collection" refers to the overall collection of user galleries.
• Mon, 16 Jun 2014, 12:53 AM
any way to allow these galleries to appear on the front page so that visitors can see it?
• Mon, 16 Jun 2014, 8:25 AM
g k: If you were to add a Media collection activity to the front page course, you should be able to. Otherwise there are permissions issues - typically the module in a course would be restricted by permissions to only be viewable by users enrolled in that course (and further restrictions may be applied atop of that).
• Tue, 17 Jun 2014, 5:11 AM
I tried to add a media collection carousel to the front page via the insert option in an html block. It would not show up.
• Tue, 22 Jul 2014, 3:47 PM
I thought 2.5 included jQuery but all my carousels are static.
• Wed, 23 Jul 2014, 8:09 AM
Hi Scott,

Yeah that's the one disappointing limitation. jQuery is indeed available, but the way filters work (at least pre M2.7) makes it difficult to have it dynamically load the carousel and related JS code.

When I update the filter for M2.7+ I hope to be able to have them as fully functioning carousels rather than simply linking off to the gallery.
• Tue, 14 Mar 2017, 7:44 PM