Beta Grid for Moodle 4.0

Beta Grid for Moodle 4.0

by Gareth J Barnard -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello,

I have updated the Grid format for Moodle 4.0 as follows:

Version 4.0.0.1 for Moodle 4.0 version 2022041900.00 (Build: 20220419) and above within the MOODLE_400_STABLE branch until the next release:

with:

  1. Start of complete re-build from scratch - functionality added as funded.  Decision made due to the changes in the core API.

A little backstory

The course format API in Moodle 4.0 has been almost completely changed the way that course formats operate.  The old methods have been deprecated leading to lots of warning messages on development systems and future removal of that functionality causing the format to no longer operate.  Through the work done on Collapsed Topics, I have been able to understand the true nature of what needs do be done to update a course format and came to the conclusion that it was too big a job for the Grid format in one go.  With change there is opportunity, with time there is feature creep, and so this first version of the format for Moodle 4.0 is the first step providing initial functionality of uploading an image, having it shown in a grid and having that link to a section on a single section page.  Gone is the old method of uploading an image with a custom form, being replaced with a section setting:

Editing section

The course settings: 'Set the image container width', 'Set the image container ratio relative to the width', 'Set the image resize method' and 'Show the grid image in the section summary' have been retained along with their global defaults.  The course setting 'Number of sections' remains instead of increasing and decreasing sections.

If you have existing courses or backups from a previous version, then the images should be retained upon upgrade / restore.  It is the intent to progressively add back functionality if it's actually wanted.

I strongly suggest that this version is installed on a test server only!  It is a 'beta' release!  Ensure that you have backups, in at least two different places, of all data before using.  Even better, run on an install on a virtual machine.

If you find this post useful, then please mark it so.  Please report any issues with this version ONLY here.

Gareth

Average of ratings: Useful (2)