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:
7239 sites
3k downloads
182 fans
Current versions available: 24

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

Comments

  • Richard Oelmann
    Tue, 4 Dec 2012, 7:52 PM
    At the moment I'm getting 'Notice: Undefined property: stdClass::$numsections in/var/www/moodle24/course/format/grid/renderer.php on line 269 on my localhost test system - also on lines379 and 487. But there's no staacktrace or further information.
    I've tried comparing the way $course->numsections is used in the format/renderer.php and i can't see any difference or reason for the error at the moment
    Richard
  • Gareth J Barnard
    Tue, 4 Dec 2012, 8:27 PM
    Dear Richard,

    I've plans to do an update to 2.4 as soon as I've completed Collapsed Topics to 2.4 and learnt all of the excellent changes made by Marina Glancy on MDL-35218.

    The issue is a bit obscure and I think just requires the addition of:

    $course = course_get_format($course)->get_course();
    course_create_sections_if_missing($course, range(0, $course->numsections));

    To 'format.php' before the call to the renderer. The best place to learn is to have a Git repository of 2.4 and look at the changes to the files in the topic's format. I did get the error with my format to, so have an idea of how to fix it. It also might need an:

    $modinfo = get_fast_modinfo($course);

    In the right places of renderer.php. I'll know what to do when I get time to look at it. Feel free to look at how my format works to see similarities in the code and then make adjustments: https://github.com/gjb2048/moodle-format_topcoll

    Cheers,

    Gareth
  • Richard Oelmann
    Tue, 4 Dec 2012, 8:37 PM
    Thanks Gareth,
    I'll take a look at this over the next couple of days. Thanks for all your hard work!
  • Richard Oelmann
    Tue, 4 Dec 2012, 9:13 PM
    Hi Gareth,
    Your suggestion worked in as far as the grid format is displaying, but at the moment I can't add any images to the grid. But progress, and step 1 achieved smile now to look at why the images wont display!
  • Richard Oelmann
    Tue, 4 Dec 2012, 10:31 PM
    Hi Gareth - good news! It works!!! My images weren't showing up as for some reason I had a corrupted lib.php on my testing 2.4 version.
    So the only change I actually made was to add the lines you suggested into the format.php file. I haven't found any need to do anything with the $modinfo in the renderer.php, but if in further testing it does become necessary I will be sure to let you know smile
    Thanks for the pointers!!!

    Richard
  • Gareth J Barnard
    Tue, 4 Dec 2012, 11:08 PM
    Nice one Richard smile

    I think the settings $modinfo deals with come into play when the number of sections changes in either direction. Some old 'unset' code in the loop in renderer.php might need to be removed. Would you make a fork of https://github.com/PukunuiAustralia/moodle-courseformat_grid and create a new branch, Julian uses the same format as Moodle, so would be called 'MOODLE_24_STABLE' then you would be able to do a pull request smile. If, not, PM me for an eMail and I can add and test in my fork.

    Cheers,

    Gareth
  • Mokhtar Ismail
    Sun, 9 Dec 2012, 11:54 AM
    Hai Richard, which lib.php did you mean? i' also having same problem after add the suggested line in format.php. The inages wont display...so please quide me which lib.php should i update
  • Neil Johnson
    Thu, 13 Dec 2012, 1:32 AM
    Please update this wonderful format to run in 2.4.
  • Gareth J Barnard
    Thu, 13 Dec 2012, 2:37 AM
    Dear Mokhtar - I think Richard means the 'lib.php' contained within the format.

    Dear Neil - As you can see from above an upgrade is not trivial and will require possibly quite a few hours work, which could be expedited with funding.

    Cheers,

    Gareth
  • llywelyn morgan
    Mon, 17 Dec 2012, 8:03 PM
    Hi Gareth. Not sure if you need error reports. Testing the 4th December version. The first block shows on a course, but getting the following message instead of remaining blocks:
    Notice: Undefined property: stdClass::$numsections in D:\Apache2\htdocs\moodle24\course\format\grid\lib.php on line 320
  • Gareth J Barnard
    Mon, 17 Dec 2012, 8:12 PM
    Dear Llywelyn,

    Thanks for that. That particular issue is fixed in https://github.com/PukunuiAustralia/moodle-courseformat_grid/pull/12 - however there is currently another issue with png files to fix and possibly more. It's a question of time.

    Cheers,

    Gareth
  • llywelyn morgan
    Mon, 17 Dec 2012, 8:14 PM
    I've also noticed that on entering a course with grid format enabled, it turns editing on.
  • Gareth J Barnard
    Tue, 18 Dec 2012, 12:54 AM
    Thanks Llywelyn, I'll have a look at that.
  • Gareth J Barnard
    Tue, 18 Dec 2012, 9:20 PM
    Dear all,

    Help with Alpha version for 2.4 please smile -> https://moodle.org/mod/forum/discuss.php?d=218272

    Thanks,

    Gareth
  • Greg Gerbs
    Thu, 20 Dec 2012, 5:00 AM
    Hello All,
    I am wondering if anyone can provide some insight for me on the following statement in the readme.txt file concerning updating

    "If already installed, remove the row with the 'plugin' of 'format_grid' in the 'config_plugins' table and drop the 'format_grid_icon' and 'format_grid_summary' tables before clicking on 'notifications'"

    I cannot find anywhere to "remove" the grid format, and obviously simply deleting the format folder via FTP does not change the database entries ... any help is appreciated!

    Thanks,
    Greg
Please login to post comments