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.
5208 sites
2k downloads
99 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.

REPORTING ISSUES: When reporting issues you MUST clearly state the full version and release of both Moodle and the Grid 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
  • Picture of Dave Foord
    Mon, 29 Oct 2018, 11:31 PM
    Dan - I don't have an answer for you, but I can confirm that I am working on a Moodle which is doing something very similar. That one is using the old technique of orphaned topics (which have now been numbered sections 110, 111, etc.) But I cannot add any more orphaned topics to the site, only topics in positions 9,10 etc.
  • Gareth J Barnard
    Tue, 30 Oct 2018, 4:08 AM
    Hi Dan,

    Latest? What specific version are you using please? Just in case you've done something silly.

    I've never seen that happen, ever. Are there by mistakes links on the course to 'changenumsections.php' in a URL?

    G
  • Picture of Dan Cramp
    Tue, 30 Oct 2018, 5:26 PM
    Hi Dave and Gareth,

    Thanks for the responses! Dave, it sounds like a very similar issue - when sections are added it seems to start at 110 and I'm pretty sure they had orphaned sections as we pretty much reuse the same courses year after year - I'll look to see if that's having an impact.

    Gareth, I certainly wouldn't rule out me doing something silly! The version installed is 3.4.0.4 / 2017111803. I've never seen it before either! I've just checked on one of the affected courses and can see that section 110 is still being created regardless of course format - I believe the issue of section 110 being created is a Moodle/upgrade bug, but it happens to then make Grid Format unresponsive.

    I'll keep digging into it!

    Thanks,
    Dan.
  • Picture of Dan Cramp
    Tue, 30 Oct 2018, 5:31 PM
    Hi,

    Just found this which may be related: https://moodle.org/mod/forum/discuss.php?d=368023

    Thanks,
    Dan.
  • Picture of Dan Cramp
    Tue, 30 Oct 2018, 9:46 PM
    Hi all,

    I think I've worked out what is happening here. The topic 110 is the one created by default with the OU subpage plugin and seems to be causing problems since the change in stealth activities in 3.4 (https://github.com/moodleou/moodle-mod_subpage/issues/19). I've created a new course and can now recreate the issue. This doesn't affect most course formats but does affect Grid Format. I've deleted all instances of a subpage in the test course and Grid Format works again and doesn't break.

    Thanks for the pointers above - it helped me track this down!

    Dan.
  • 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

Commenting temporarily disabled