Grid Format

Course formats ::: format_grid
Maintained by Gareth J BarnardGareth 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.
Latest release:
7009 sites
3k downloads
182 fans
Current versions available: 25

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

Komentari

  • Dave Foord
    pon, 29. lis 2018., 23:31
    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
    uto, 30. lis 2018., 04:08
    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
  • Dan Cramp
    uto, 30. lis 2018., 17:26
    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.
  • Dan Cramp
    uto, 30. lis 2018., 17:31
    Hi,

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

    Thanks,
    Dan.
  • Dan Cramp
    uto, 30. lis 2018., 21:46
    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
    sri, 31. lis 2018., 00:21
    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
  • Dan Cramp
    čet, 1. stu 2018., 22:35
    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
    čet, 1. stu 2018., 23:49
    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
  • Chris Bell
    uto, 6. stu 2018., 18:43
    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
    uto, 6. stu 2018., 19:48
    Hi Chris,

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

    Kind regards,

    Gareth
  • Gareth J Barnard
    sub, 10. stu 2018., 20:34
  • Dan Cramp
    pon, 19. stu 2018., 18:36
    Hi Gareth,

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

    Thanks,
    Dan.
  • Gareth J Barnard
    pon, 19. stu 2018., 18:48
    Dear Dan,

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

    Gareth
  • Nicholas Fenge
    uto, 4. pro 2018., 20:17
    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
Please login to post comments