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: 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

Comments

  • Gareth J Barnard
    Tue, 8 Oct 2013, 9:40 PM
    Dear Derek,

    Thank you smile - I'm currently working on getting CONTRIB-4099 to a stage where I can create a crowd funding proposal to support the full development.

    So, if anybody has any comments to make, then please make them now!

    Cheers,

    Gareth
  • Gideon Williams
    Sun, 13 Oct 2013, 8:38 PM
    Gareth

    Are you able to tell me what is the optimum size for image to fit in and cover all of the grid block. 470x320 gets pretty close but do you have an exact value?

    From your video identifying the new features I notice that the Title for the sections has a changed larger format too. Is this a new feature too?

    Many thanks

    Gideon
  • Gareth J Barnard
    Sun, 13 Oct 2013, 9:20 PM
    Dear Gideon,

    The current implementation before CONTRIB-4099 is hopefully crowd funded has a image holder size of 210 by 140. All images are resized to this. It is therefore a ratio of '3-2', so to make any image fit and cover all of the grid block the image can be any size as long as it's ration is 3 by 2. So in your example 470 / 3 gives 156.5 then * 2 gives 313.3 so I'd say 470x313 or 470x314.

    The title sections are larger because I'm using my 'Shoelace' theme which is based upon the 'Clean' theme.

    Cheers,

    Gareth
  • Chris Garner
    Tue, 15 Oct 2013, 7:59 AM
    HI there
    I am using
    Moodle version = 2013051401.00
    Grid version = 2013100200

    I have searched forums and just cant work this one out, sorry.
    I have installed the plugin and selected it in Course default settings but nothing changes when i look at my Course - the topics still show in a list.
    thanks!
  • Gareth J Barnard
    Tue, 15 Oct 2013, 6:17 PM
    Dear Chris,

    The course default settings just sets the format for new courses. For existing courses you need to edit the course settings and set the format there, please see: http://docs.moodle.org/en/Course_settings#Course_format

    Cheers,

    Gareth
  • Peter Horrox
    Mon, 18 Nov 2013, 7:22 PM
    Does anyone know how I would create a link say on a separate page within the course that would link back to the course page and open a specific topic in its lightbox?
  • Gareth J Barnard
    Mon, 18 Nov 2013, 7:58 PM
    Dear Peter,

    That currently cannot be done as it is in fact a two step thing. First there would need to be a redirect to the course page to render the page and the light box (shade box) with all the required information and then second a means of a link activating the specific section in the light box. The code as stands uses JavaScript YUI events to detect section activation on a specific link. Therefore the event detection code is only activated on the grid course page so use of the link anywhere else will not work.

    Sorry, but I don't have an alternative bar to suggest using the navigation tree in the navigation block. The activity / resource links can be used to take you directly to them (the same as in the section box) but like the grid, the sections are not links and therefore cannot be used.

    Cheers,

    Gareth
  • llywelyn morgan
    Tue, 19 Nov 2013, 5:22 PM
    Hi Gareth
    Latest update is causing the following 'error to database' problem (latest moodle 2.5):

    Debug info: Duplicate entry '984' for key 'mdl_courgridicon_sec_uix'
    INSERT INTO mdl_format_grid_icon (sectionid,courseid,displayedimageindex) VALUES(?,?,?)
    [array (
    0 => '984',
    1 => '167',
    2 => 0,
    )]
    Error code: dmlwriteexception
    Stack trace:

    line 426 of \lib\dml\moodle_database.php: dml_write_exception thrown
    line 1089 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
    line 1131 of \lib\dml\mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
    line 988 of \course\format\grid\lib.php: call to mysqli_native_moodle_database->insert_record()
    line 363 of \course\format\grid\renderer.php: call to format_grid->create_get_imagecontainer()
    line 122 of \course\format\grid\renderer.php: call to format_grid_renderer->make_block_icon_topics()
    line 141 of \course\format\grid\format.php: call to format_grid_renderer->print_multiple_section_page()
    line 279 of \course\view.php: call to require()
  • Gareth J Barnard
    Tue, 19 Nov 2013, 7:09 PM
    Dear Llywelyn,

    I see, thanks. Looks like the detection of a non-existent record is taking place and that you don't quite have the latest version. Anyway, I've created a new patched version. Please could you test: https://github.com/gjb2048/moodle-courseformat_grid/archive/V2.5.5.2.zip and let me know as soon as possible (tag subject to change and does not constitute a formal final version release).

    Cheers,

    Gareth
  • Usman Asar
    Tue, 26 Nov 2013, 4:32 AM
    Gareth, having trouble using this on Moodle 2.6, the image loader keeps on going and doesnt shows up image uploader..
  • Gareth J Barnard
    Tue, 26 Nov 2013, 6:08 AM
    Dear Usman,

    Please see my reply here: https://moodle.org/mod/forum/discuss.php?d=244502#p1060368

    Cheers,

    Gareth
  • Paul Rettey
    Tue, 17 Dec 2013, 9:11 PM
    Hi Gareth,

    We've been experiencing and issue that sounds similar to whats going on with version 2.5

    We're using 2.3.8.

    Version of grid format: 2012082200

    Steps to replicate:

    Back up a course with images in the topic summary

    Restore the course

    The images in the topic summary appear as the broken link icon.

    Does this sound like the same issue?

    All the best
  • Gareth J Barnard
    Tue, 17 Dec 2013, 9:18 PM
    Hi Paul,

    Thanks for the report. They do sound similar but the fix in M2.5+ was related to new code added in that version. Being M2.3 this seems to be different. I've brought the format a long way since then. I would guess it could be down to the version you have for M2.3 as I only got the backup and restore code working properly on the 22nd August 2012. Please look in the 'version.php' file of the format.

    Pragmatically, I operate support in line with Moodle HQ policy as regards bug fixes etc. Therefore as M2.3 is no longer supported I won't be making a fix to the M2.3 version if required. I'll only use the information in the M2.5+ versions if relevant.

    Cheers,

    Gareth
  • Gareth J Barnard
    Tue, 17 Dec 2013, 9:41 PM
    Hi Paul,

    To be sure I just tested and I cannot replicate the issue with the latest Grid format for M2.3 being V2.3.4.1. Looking at the description being the section summary text area, this is core code and therefore the responsibility of HQ to fix. The Grid format is not responsible for it in the backup and restore process because it has 'plugin' code for the bits it is responsible. I would suspect therefore that you have the same issue with the other core formats.

    Cheers,

    Gareth
  • Arshad Hussanee
    Tue, 21 Jan 2014, 6:51 AM
    Hi Gareth,

    Not sure if this bug has been reported already or resolved but the numbered format in the tinyMCE isn't working when using the grid format but works just fine without. Basically, in the tinyMCE, i can see the numbered format but once saved, the numbers don't show anymore. I have images if required, email me at arshad.hussanee@canberra.edu.au

    Thanks,
    Shad
Please login to post comments