Moodle plugins directory: Grid Format | Moodle.org
Grid Format
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.
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
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
I'll take a look at this over the next couple of days. Thanks for all your hard work!
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 now to look at why the images wont display!
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
Thanks for the pointers!!!
Richard
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 . If, not, PM me for an eMail and I can add and test in my fork.
Cheers,
Gareth
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
Notice: Undefined property: stdClass::$numsections in D:\Apache2\htdocs\moodle24\course\format\grid\lib.php on line 320
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
Help with Alpha version for 2.4 please -> https://moodle.org/mod/forum/discuss.php?d=218272
Thanks,
Gareth
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