Course formats: Grid Format

format_grid
Maintained by Gareth J Barnard Gareth J Barnard
A modular and visual course format. Hides all topics and creates a grid of icons (one for each topic) with short titles. Clicking on an icon brings up the content from the corresponding topic.
5294 sites
2k downloads
102 fans

A modular and visual course format. Hides all topics and creates a grid of icons (one for each topic) with short titles. Clicking on an icon brings up the content from the corresponding topic in a "lightbox" style display.

Support:

The format comes with NO support.  Please see the 'Support' section in 'Readme.md' file that comes with the format.  This is because the format is complex and I regret that I don't have the time / resources to freely assist with questions pertaining to specific enhancements / changes / knowledge improvement.

I will investigate genuine bugs and issue fixes in a timescale set by myself.  When reporting issues you MUST clearly state the full version and release of both Moodle and the Grid format format as contained within their 'version.php' files - if not it takes me longer to figure out, often resulting in me asking for the details anyway and slowing the process of solving your problem down.  It really helps to upload and describe in detail the issue you are having on the 'Course formats' forum.

Screen cast:


More to follow as new icons have been added....

Privacy API support starts with V3.3.0.5 for M3.3 and V3.4.0.4 for M3.4 where the API has been implemented in the minor release of Moodle.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Gareth J Barnard
Gareth J Barnard (Lead maintainer): Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Gareth J Barnard
    Wed, 31 Oct 2018, 12:21 AM
    Dear Dan,

    In what way does it affect the format? Are there any errors in the php.log file that would help me write a fix?

    G
  • Picture of Dan Cramp
    Thu, 1 Nov 2018, 10:35 PM
    Hi Gareth,

    Basically it seems that once the sections are non-sequential, Grid Format then becomes unresponsive - clicking on a tile doesn't do anything. Turning editing on doesn't do anything either - you need to switch out to topics format to delete the non-sequential section then switch back - the problem is if sub pages are still there, it recreates the non-sequential section. So it looks like these are incompatible plugins - though subpages has an update which I haven't applied yet which may deal with it. Essentially it seems to be due to subpages which used the orphaned section idea to do it's magic, but is now a problem for 3.4+. I can't find subpages on Moodle either, just on github.

    I can send you the php logs if you let me know the best way to send (don't want to clog this up), but it looks like there are essentially 3 issues in the renderer for each topic in between the last actual section and the section created by subpages (e.g. if you have 10 sections and subpages creates section 110 you get 100 of these notices):

    Notice
    : Undefined offset: 33 in
    /var/www/moodle/docroot/course/format/grid/renderer.php
    on line
    744

    Notice
    : Trying to get property of non-object in
    /var/www/moodle/docroot/course/format/grid/renderer.php
    on line
    747

    Notice
    : Trying to get property of non-object in
    /var/www/moodle/docroot/course/format/grid/renderer.php
    on line
    748

    Hope this helps!

    Thanks,
    Dan.
  • Gareth J Barnard
    Thu, 1 Nov 2018, 11:49 PM
    Thanks Dan,

    That helps.

    At some point the core core changed such the the sections were iterated upon regardless of the section number in sequence. I don't know when or why, just need to think of a solution that the logic of the format can cope with it.

    G
  • Picture of Chris Bell
    Tue, 6 Nov 2018, 6:43 PM
    Hi Gareth,
    I believe the (unadopted and unsupported) subpage plugin is the main cause of the issue here. The subpage plugin exploits a bug (pre Moodle 3.3) of orphaned sections. In Moodle 3.3 and newer, orphaned sections are not allowed, ie if 10 sections are set in the course settings page, any sections after 10 cease to exist and any resource/activity that is outside of those 10 sections will no longer reside within a subpage (orphaned section).
    I don't believe you're going to be able to fix this but would absolutely love to be proved wrong. I believe subpages start in the triple-digits to avoid clashes, hence they generally cause gaps in sequentiality.
  • Gareth J Barnard
    Tue, 6 Nov 2018, 7:48 PM
    Hi Chris,

    It can be fixed, just a matter of me finding the time to do so.

    Kind regards,

    Gareth
  • Gareth J Barnard
    Sat, 10 Nov 2018, 8:34 PM
  • Picture of Dan Cramp
    Mon, 19 Nov 2018, 6:36 PM
    Hi Gareth,

    Thanks for this - any chance you can apply the patch to the 3.4 version as well?

    Thanks,
    Dan.
  • Gareth J Barnard
    Mon, 19 Nov 2018, 6:48 PM
    Dear Dan,

    Yes, but not in the near future due to work commitments.

    Gareth
  • Picture of Nicholas Fenge
    Tue, 4 Dec 2018, 8:17 PM
    Hi Gareth,

    We currently use Adaptable and upgraded to V 1.7.3 which looks great, solving some of our issues.

    We are using Moodle 3.4.3 and about to update to 3.5.3 and have seen in the core boost theme that in grid format, can have individual resource navigation.

    This is a great feature of 3.4 but Adaptable 1.7.3 doesn't allow the navigation feature down to resource level, only section level.

    Can the Adaptable theme allow grid format individual resource navigation buttons?


    Kind regards

    Nick Fenge
  • Picture of Ben James
    Thu, 31 Jan 2019, 12:03 AM
    Hello Gareth,

    Are you able to provide a fix for this for Moodle 3.5 too please? Happy to chat about possibilities.

    Thanks,
    Ben
  • Gareth J Barnard
    Thu, 31 Jan 2019, 12:09 AM
    Hi Ben,

    ? I'm confused as I cannot provide a fix in a course format for activity navigation when it is a core / theme thing as stated in the post above: https://moodle.org/mod/forum/discuss.php?d=379405#p1529643. So what fix?

    G
  • Picture of Ben James
    Thu, 31 Jan 2019, 12:27 AM
    Hi Gareth

    Thanks for your quick response. Sorry, I was a bit vague in my previous post.

    We use the Collapsed Topics format heavily in our Moodle instance and I see you've provided an update/patch to that course format which enables the subpage plugin to continue to work correctly (this is the bit I forgot to mention earlier!)

    Is it possible that there could be a patch for the Grid format too?

    Thanks,
    Ben
  • Gareth J Barnard
    Thu, 31 Jan 2019, 12:46 AM
    Hi Ben,

    Nope I'm sure I did not in CT. Still really none the wiser about what you're talking about, please could you be really 'really' specific.

    Gareth
Please login to post comments