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.
4683 sites
3k downloads
92 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....

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
    Thu, 3 May 2018, 7:12 PM
    This is by design in Moodle core, the number of sections functionality has been removed from the core course formats and I have reciprocated.
  • Picture of Jean-François Vanass
    Tue, 8 May 2018, 5:41 PM
    Hi,

    Is it possible to update your plugin for users who want to navigate inside the modal with tab keys without using their mouse ?
    It'll be amazing if pressing tab key on the last focused element in the modal jumps to the modal of the next section.

    JF
  • Gareth J Barnard
    Tue, 8 May 2018, 5:46 PM
    Dear JF,

    Good idea! I'd love to see the solution you have for this, please submit a pull request on the GitHub repository with the code.

    Thanks,

    Gareth
  • Picture of Felicity Killoway
    Thu, 10 May 2018, 9:51 PM
    Hi,

    We've recently upgarded to Moodle 3.3 from 2.7, and had to use this plug in. Sadly it has failed on some courses where the grid is still there, but when clicked on the content doesnt appear and isnt listed below when editing mode is turned on. It doesnt do it on all courses just the odd few, anyone come across this before?

    Thanks
    Felicity
  • Gareth J Barnard
    Thu, 10 May 2018, 10:06 PM
    Hi Felicity,

    No I have not come across this before. Are there any errors in the php.log file and does the content come back if you switch to the Topics format.

    G
  • Gareth J Barnard
    Thu, 10 May 2018, 10:07 PM
    P.S. Do you have the backup you made before the upgrade of the affected courses so that you can restore them?
  • Picture of Felicity Killoway
    Thu, 10 May 2018, 10:54 PM
    Hi Gareth,

    When we change back to any other course format (Topics & Buttons etc) all the content and all the files return. I had to change a course back to topics this morning due to the grid playing up and recently changed it back to grid to test and it seems to correct its self, but that isn't the case for all courses. We are looking into the php.log file (not entirely sure if it has been on) and will get back to you about that.

    Thanks
    Felicity
  • Picture of Felicity Killoway
    Fri, 11 May 2018, 3:26 PM
    [Thu May 10 15:55:44 2018] [error] [client 10.1.55.95] Default exception handler: Can not find data record in database table course. Debug: SELECT id,category FROM {course} WHERE id IS NULL\n[array (\n)]\nError code: invalidrecord\n* line 1533 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown\n* line 1509 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()\n* line 6657 of /lib/accesslib.php: call to moodle_database->get_record()\n* line 1085 of /course/format/lib.php: call to context_course::instance()\n* line 2435 of /course/format/grid/lib.php: call to format_base->inplace_editable_render_section_name()\n* line 93 of /course/format/grid/renderer.php: call to format_grid->inplace_editable_render_section_name()\n* line 1082 of /course/format/grid/renderer.php: call to format_grid_renderer->section_title()\n* line 500 of /course/format/grid/renderer.php: call to format_grid_renderer->make_block_topics()\n* line 249 of /course/format/grid/format.php: call to format_grid_renderer->print_multiple_section_page()\n* line 280 of /course/view.php: call to require()\n, referer: https://****************/course/view.php?id=924

    Hi Gareth, see above for error (* are removed URL)

    Thanks
    Felicity
  • Gareth J Barnard
    Fri, 11 May 2018, 6:12 PM
    Dear Felicity,

    I suspect that the upgrade or something else (not to do with the format) has corrupted the 'course' field in the 'course_sections' table in the database. Do any records have 'null' for this field?

    G
  • Picture of Marga Inaraja
    Thu, 17 May 2018, 4:38 PM
    Hi Gareth,

    I think we found a little error. We are translating the plugin to catalan and we found out the same language string in two different places:

    In settings there is sectiontitleboxinsideposition and sectiontitleboxposition that have the same string identificator in the help (sectiontitleboxposition_help | format_grid: Set the position of the section title within the grid box to one of: 'Inside' or 'Outside'.)

    It could be sectiontitleboxinsideposition_help | format_grid:
    Set the position of the section title when 'Inside' the grid box to one of: 'Top', 'Middle' or 'Bottom'.

    I hope you could understand my explanation.

    Thank you!
    Marga
  • Gareth J Barnard
    Fri, 18 May 2018, 1:12 AM
    Thanks Marga, there will be a fix in the next release, so likely to be version 3.4.0.4.
  • Picture of Irith Herman
    Fri, 18 May 2018, 6:57 AM
    After I upgraded to 3.4 I can"t see the pctures in the grid
  • Picture of ashish bhatnagar
    Fri, 18 May 2018, 8:33 PM
    I want to show my courses name in grid format on front page. I have installed this plugin but the grid view is not showing on front page its showing on the course content . I want to show my courses name in grid format not course content - https://www.accountsnextgen.com.au/trainings/ . Please advice
  • Gareth J Barnard
    Fri, 18 May 2018, 10:29 PM
    Dear Irith,

    Really? You've not given me any information upon which to make a deduction that there is anything wrong with the code. The upgrade process can be complicated and there is so many things that you / the system could have done wrong that don't pertain to the Grid format itself. And in light of no other reports or being able to replicate myself since M3.4 came out in Novemeber 2017, I'm inclined to think it's your system and not my code.
  • Gareth J Barnard
    Fri, 18 May 2018, 10:32 PM
    Dear Ashish,

    The Grid format is a 'course format' for 'courses'. The front page is a 'front page' which uses the hard coded 'site' format - therefore the Grid format cannot be applied on the front page as is. You'd have to either write some clever mark up or change the core code / implement something in a theme.
Please login to post comments