Major Update to Grid Format

Major Update to Grid Format

Julian Ridden發表於
Number of replies: 58

Howdy Moodlers

I have just pushed a new version of the Grid format online that I recommend all users update to. I do want to take this moment to remind users that the Grid format has been listed as a "release candidate" meaning there are still a couple of bugs to be worked out. If you wish to use Grid (and I hope you do) please make sure you get the latest patches as they are released to increase stability.

The good news is that we are now in RC2 with a huge bunch of fixes and updates.

Due to popular dmand the format now uses Variable width. In english this means it will fit as many blocks to the page horizontally as your theme allows. So those with wide themes may now find 4 ro even 5 grid items per row. It also means if you dock blocks, the grid now extends to fill the space where it can.

The block sizes are still set in stone. I am investigating ways to allow an admin to overide the grid item sizes but that is still a work in progress I'm afraid.

Translations into Russian and Spanish are also now added.

A major thankyou must go out to Pavel Timoshenko who contributed a large bulk of the update as well as Tim Lock.

Try and keep feedback to this thread if we can..or even better, add your items to the Moodle Tracker ( http://tracker.moodle.org/browse/CONTRIB/component/11231 ) so we can keep a better eye on what needs fixing.

Download now by either visiting the M&P Database or download direct from Github

Julian

評比平均分數: -
In reply to Julian Ridden

Re: Major Update to Grid Format

Steve Towson發表於

Strangest issue!

I installed your most recent version of the grid format, and applied the format to one of my courses.  Later looking at courses with the topics format, I could see that the CSS changed, in particular the formatting of section headers had enlarged and now had a dotted bottom underline (just like the one in the grid format).

I thought I just had a sticky cache or something, so I tried it from another computer - same issue.

In order to return my topics format back to normal I had to edit the CSS of the grid format.

I didn't know that installing a course format could alter the other course formats.  Don't know how it's possible.

In reply to Steve Towson

Re: Major Update to Grid Format

Julian Ridden發表於

Hi Steve, You are correct, one course format cannot impact the others. The stylesheet of the format is only loaded by Moodle when the format is chosen.

I would be looking at things like cache. I certainly have not been able to replicate your issue. Am keen to find out if others have.

Julian

In reply to Steve Towson

Re: Major Update to Grid Format

Tim F發表於

After installing the grid format I was unable to backup my courses...not playing that game anymore

In reply to Tim F

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Tim,

 

That sounds really strange as a course format only changes the presentation of the course.  Were there any error messages?  What version of Moodle and Grid format are you using?  Did the problem affect all courses?  Did the issue go away when you uninstalled the format?  Are you using any other third party plugins and did you install them at the same time?

 

Regards,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Carlos Sánchez Martín發表於

Dear Gareth,

As noted here: http://moodle.org/mod/forum/discuss.php?d=191481&parent=857536 I also had that problem. I was trying to restore a course and it did not let me. Error message:

"Restore method process_grid is missing. It must be defined by a developer."

The problem disappear right after deleting GRID FORMAT. BTW, the pictures part of the summary disappear when using this format.

Saludos,
Carlos

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Mary Evans發表於

 

Hi Gareth,

I have been meaning to try Grid format out, and so managed to do this just now.

The date of the download in the Plugins DB is 22 January 2012 this is the only download anyone should use as the alternative cannot be guaranteed correct, but if it is a newer version, then the Plugin DB download for Grid format should be updated.

I have added Grid format to my localhost/moodle/course/format directory and systematically looking at all the places which need 'grid' adding like all the 'callback' functions.

So this is what I have found so far.

  1. found .git which should not be there
  2. of the 6 'callback functions' in grid/lib.php NONE have been renamed to 'grid'.

If you look at the Course formats Moodle Doc guidelines, it states...

"...Rename callback functions in lib.php. The names of the functions is formed as callback_FORMATNAME_CALLBACKNAME() ..."

which makes me think that Julian has not checked this major part of grid/lib.php. Either that or the Plugin's DB has not been updated?

I'll let you know how I get on testing this in Moodle 2.2.1

Cheers

Mary

In reply to Mary Evans

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Tim, Carlos and Mary.

Sorry, I had not spotted that the grid format uses its own backup and restore to database - which prompts me to write one for Collapsed Topics -  therefore allowing me to understand the process and hopefully help out here.

I think Mary that Julian has just not updated the M&P database, the zipball on GitHub has the version of lib.php with the corrected names for the callbacks as per the documentation.

Doing a search in Netbeans on the Moodle 2.2 code for "process_" in the php files reveals how this method is defined across different plugins.  With this Carlos it appears that the function 'process_topic' in the file '/grid/backup/moodle2/restore_format_grid_plugin.class.php' needs to be renamed to 'process_grid' to make this work, though I have not tested this as wish to concentrate on my own format first.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Additonally the code in 'restore_format_grid_plugin.class.php' appears to be  for the 'slides' course format - so possibly some work to do here.

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Mary Evans發表於

In that case Gareth, the whole idea of the Plugins database is failing if the version in the database is not updated, since users will go to that as their first port of call and not the alternative URL

I'm running into all sort of problems now, as Moodle 2.2.1 seems to be throwing up all sorts of depreciated code.

Its all fun though! I might learn something...LOL

Cheers

Mary

In reply to Mary Evans

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Mary,

Indeed, I tend to use the 'force' to guide me in my Moodle development adventure.  And then use what I can attain by examining existing code.

The M&P is a good idea as it allows the GitHub repositories to contain code that is under development and ahead of a defined release.  Plus it does keep it in house if GitHub ever folded.

It is all fun and as with most things in life you learn more from your failures than successes.

Cheers 微笑,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear all,

Further investigation of the backup / restore code currently in the Grid format seems to be a partial attempt at a conversion from the Moodle 1.9 code in the Flexible Web Page format (http://moodle.org/mod/data/view.php?d=13&rid=1080) and the Moodle 2.0 code in the Slides course format (http://moodle.org/mod/data/view.php?d=13&rid=4756).  However this does not appear to be complete, hence the issues.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Mary Evans發表於

Dear Gareth,

Does this mean we could lose that part of the plugin or is it needed for the Grid to function?  If it's not connected, and we can dispense with it...I wonder why it was in the download in the first place?

curiously,

Mary

In reply to Mary Evans

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Mary,

For the moment you can lose the whole 'backup' folder to get you working with the format.

However, the files do need to work in the future so that when a course is backed up and restored then all of the data in the database that is Grid format specific (i.e. how it is configured - I think!) is also put back.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Nadav Kavalerchik發表於
Core developers的相片 Plugin developers的相片 Testers的相片 Translators的相片

It seems, You are all using the wrong Moodle Branch.

Please use the Moodle 2.2 Branch from Paul Krix' github account:

https://github.com/PukunuiAustralia/moodle-courseformat_grid/tree/MOODLE_22_STABLE

It Works great on Moodle 2.2 微笑

In reply to Nadav Kavalerchik

Re: Major Update to Grid Format

Mary Evans發表於

Thanks for the Nadav 微笑

But why does no-one update the Plugins DB?

 

 

In reply to Mary Evans

Re: Major Update to Grid Format

Julian Ridden發表於

Getting rather annoyed with the new plugins DB.

Why ask for the github location, changelog and archiving link if the DB is going to insist in always keeping an old zip unless manually updated.

I have made many updates to the code from what Paul gave me and of course none of this has gone into the plugins DB... Grrrrrrrr

Does anyone know the process that is meant to be driving this? Is the DB going to be capable of pulling in from github directly in future to save all this confusion?

Julian

P.S. I have tonight updated the zip that is in the plugins DB

P.P.S. Still cannot handle restores. Would love assistance from anyone who has figured out this part of the process.

In reply to Julian Ridden

Re: Major Update to Grid Format

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

One point about the plugins DB is to give people a trusted place to download code that is not malicious.

If the plugins DB automatically fetched the latest version from github, then someone could get their plugin approved, and then start adding all sorts of malicous code in github, and have it pulled straight through.

It is better to have only designated releases in the plugins DB.

It is not actually that hard to grab a new copy of the zip from github and upload it to the DB. It is a useful reminder to update the readme.txt first, to remind people what has changed, and to update the version number.

For anyone that wants to live on the bleeding edge, they can install the plugin directly from git. I normally give the instructions for doing that in the readme: E.g. https://github.com/moodleou/moodle-qtype_ddwtos

They may further automate the process of transferring zip files from github in the future. I am pretty sure it has been talked about. It just has not been done yet.

評比平均分數:Useful (1)
In reply to Julian Ridden

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Julian,

Is the latest copy of the code on 'https://github.com/PukunuiAustralia/moodle-courseformat_grid/'?

If so I'll help out with the backup /restore as much as I can.  I've taken a 'fork' so will update and hopefully solve the issue soon.  It took me days to figure out the backup / restore for Moodle 2 - 1.9 was much easier!

And I think the issue with the Plugin's DB is a question of stability - I do like it - but also find it a little fustrating with the upload business - however I do agree with Tim on the 'designated releases' front as often the latest version pushed to GitHub can be a work in progress and I want my users to be on the last stable release.  I consider it to be a matter of 'control' and how flexible that control is to the people with the power and responsibility of using it - perhaps this is a question for a developer's meeting?  And indeed iMoot - for which I hope to register for soon 微笑.

Cheers,

Gareth

In reply to Julian Ridden

Re: Major Update to Grid Format

Mary Evans發表於

Add new Version - Plugin DB

Hi Julian,

I left instructions in the Rocket theme forum discussion.

To ADD a new version of the Plugin you need to be 'Logged in' and in the page of the  plugin you want to update.

Then look in your sideblocks for Settings > Add new version and follow the instructions. It could not be easier!!! So no more of this... frustration!

Mary

In reply to Mary Evans

Re: Major Update to Grid Format

Julian Ridden發表於

Thanks Mary,

Yeah I had figured that out and updated it last night. Still a pain, and yes...plenty of  frustration!.

Gareth, yes that is the latest version. Would appreciate any assistance you have time to provide. 微笑

Since I inherited Grid it always feels that each update tales 5 strides forward and one stride back. Would be nice to get these last couple of bugs under control.

Julian

In reply to Julian Ridden

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Julian,

At first glance the backup / restore code is impossible to write because of the lack of a foreign key in grid_icon as it uses the auto generated sectionid from course_sections so you cannot tell what rows in grid_icon to backup for a given course.  Plus I believe this field is an auto sequence  so would be an issue restoring if an existing course had the same ids  so grid_icon needs to be changed to use courseid and section number instead and the code to operate in this way first before you have a hope of getting a good one to many relationship between grid_summary and grid_icon going for backup etc.

 

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Julian Ridden發表於

I sadly have to agree on that prognosis. Not sure how to do this then without a major re-write. Which sadly I do not have time to do. 傷心

In the meantime I have deleted the backup folder so as to not impact system backup/restore for users.

Julian

In reply to Nadav Kavalerchik

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Cheers Nadav,

That branch does not have backup and restore yet though - admitedly neither does mine in the main release until hopefully today 微笑.

Also thanks for the color picker in 'https://github.com/drcheckers/moodle-block_quickstructure'  - I think you could save an installation step for 'labels_form.php' by changing 'MoodleQuickForm::registerElementType('colourpopup',"$CFG->libdir/form/colourpopup.php",'MoodleQuickForm_colourpopup');' to use '$CFG->dirroot' to point to the colour picker files within your block structure rather than having to move them.

Cheers,

Gareth

In reply to Nadav Kavalerchik

Re: Major Update to Grid Format

Boris Puhanic發表於

I installed the version indicated above just now, and the effects caused on the topics format by the previous version I had installed have all disappeared. 

However, the grid format itself doesn't seem to look right; it looks like any of the typical formats but with pictures - there doesn't seem to be any "grid".  

Also, when I modify styles.css nothing changes.  Am I supposed to put the css code for the grid format into my theme's style sheets or something?

In reply to Boris Puhanic

Re: Major Update to Grid Format

Mary Evans發表於

No but you may need to Purge all caches in Site Administration > Development > Purge all caches this clears all your Moodle cache, we use it a lot in when working with CSS for Moodle Themes, as no changes are seen without doing this, unless you switch on Theme Designer Mode in Theme settings.  But that's not recommended for Productions Sites.

I havw not tried this version of Grid but looking at the code it does look promising.

What does bother me is that with all these different versions about it's seems odd that the place where one would expect the correct version to be, isn't! Sort of defeates the object of the New Plugins Database.

HTH

Mary

In reply to Mary Evans

Re: Major Update to Grid Format

Boris Puhanic發表於

I had Theme Designer Mode switched on when trying to make the changes.

In reply to Boris Puhanic

Re: Major Update to Grid Format

Mary Evans發表於

In that case did have you deleted your browser cache? 

You could also try manually deleting the cache from your 'moodledata' folders.

Other than that I'm not sure. 傷心

HTH

Mary

In reply to Steve Towson

Re: Major Update to Grid Format

Boris Puhanic發表於

"Later looking at courses with the topics format, I could see that the CSS changed, in particular the formatting of section headers had enlarged and now had a dotted bottom underline (just like the one in the grid format)."

Same thing happened to me.  So, I changed the following in styles.css in the 'grid' folder everything went back to normal:

.course-content h3.sectionname {     font-size: 1.0em;   border-bottom: dashed 0px #000

It is strange why it should affect the topics format like that.

I'd also like to know how to get rid of the 'New Activity' banner.  Is there a way to stop it from appearing?

 

In reply to Julian Ridden

Re: Major Update to Grid Format

Tina Powers發表於

Julian, we just downloaded the Grid format and are working through the learning curve. I tried to upload some new images for the blocks, but was greeted with this for my efforts:

Fatal error: Call to undefined function imagecreatefromstring() in /opt/web/moodle/lib/filestorage/file_storage.php on line 994

Do you have any information on this?

Thanks, Tina

In reply to Tina Powers

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Tina,

Looking at that line of code it states:

The PHP extension "GD" must be installed for image conversion

Therefore in your php.ini you need:

extension=php_gd.dll

or .so etc. After doing so, restart your web server.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Tina Powers發表於

Thank you Gareth, this did the trick. I did end up with a vertical lineup of the gid icons, which was not where I was headed, but I have not had a chance to check and see if that is a setting issue or otherwise. If you know, I would be quite grateful for the information. Otherwise, I will work on that this a.m.

Best,

Tina

In reply to Tina Powers

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Tina,

No worries.  TBH I don't know the Grid format all that much, but from what you describe it sounds like a theme and / or css issue.

Cheers,

Gareth

In reply to Julian Ridden

Re: Major Update to Grid Format

Derek Chirnside發表於

Hi Julian, just checking up on the Grid theme.  This is like the wild west here, trying to figureout things between the tracker, the plugn DB and the forums.

Can I start a nice new shiney discussion thread about GRID with an accurate title and move on to there?  酷

-Derek

In reply to Julian Ridden

Re: Major Update to Grid Format

James Thomas發表於

Hi Julian,

Really love the Grid format, but am too lazy and too busy to read 50 posts in this discussion which is not in itself searchable.

In case this hasn't already been requested and discussed, may I ask if there is a way, while applying the grid format to select between the grid format stretching and shrinking to the theme and the browser width to a set number? 

I have a course that has three lessons each week. It'd be neat (in at least 2 sense of the word) if Lesson One of each week could always be the left square in the grid. 

Thanks and sorry if this is already in the ether.

 

James

 

In reply to James Thomas

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear James,

I glanced at the 36 other posts above and do not think this has been posed here before.

Currently the icons have a fixed witdth of 220px and a height of 140px as defined in 'styles.css' (also compressed on upload to a suitable size).  Perhaps a change to percentages may work, I did have a quick try but is proving trickier than I thought.

In essence, change the width of '.course-content ul.icons li .image_holder' to 100% and the width of '.course-content ul.icons li' to 30%.  I suspect you may have to change '.course-content ul.icons li p.icon_content' to 100% to.  And take things from there with FireBug.

Cheers,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Major Update to Grid Format

James Thomas發表於

Dear Gareth,

Thanks for your suggestions and thanks for being less tetchy than me and actually looking through the other posts 微笑 .

Delving into CSS and then Firebug (whatever it is) is precisely what I do not want to do. This is anothe example of where Moodle could treat its teachers as teachers not IT specialists. 

It cannot be a big drama for the programmers to add this paramaters to the set up page: 

How many "squares" in each row: 

  1. no pref ____
  2. at least ____
  3. exactly _____

 

Thanks again,

 

James

 

In reply to James Thomas

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear James,

I do believe that Moodle does treat it's teachers as teachers and not IT Specialists in the way it is used - it is incredibly user friendly - however this is discusion on new ways of working and can be techy.  It was not clear from your original post what professional background you were coming from and hence I gave a 'mild' form of techy answer.

I am both a full blown 'speak a different language' techy and also an ICT Teacher with seven years experience so can target my answers accordingly.  However, the forums are frequented by all and I consider that techy answers help other techy's solve problems for non-techy's to reap the benefit of.  Do not make the mistake that because an answer is techy that Moodle is non-techy friendly, but rather look at all the hard work that has been done on this front, the new icons in Moodle 2.4 being an example.

It is a popular misconception that adding new things to software is 'easy' / 'trivial' or as you indicate 'not a big drama' - it is and does depend on the power of the requirement stated.  For example 'We will go to the Moon before the end of the decade is out' cannot be achieved sat down on a saturday afternoon after a few beers, but 'change this colour to that on a web page' can.  It is a matter of perspectives and profressional understanding.  On the flip side, I imagine that non-teachers think that teaching is just a matter of walking into a classroom, saying what you know and then going home at the same time as the students with thirty minutes of marking to do.  Having consistently worked seventy / seventy five hour weeks during term time and a substantial amount of my 'holidays' I know that this is not the case.

Imagine the pages that Moodle presents are like the exposed portion of an Iceburg.  It's not what is on the surface that matters, it's what's underneath that counts.  The same is true of all software, for your requirements adding the form is fairly trivial, making it work correctly under multiple web browsers (especially Internet Explorer) under all circumstances is the tricky bit.  I could bore you to the point where you would rather spend your entire weekend marking on what needs to happen.

So, to answer your original question:

  1. No it is not possible at the moment.
  2. It is a good idea.
  3. It will require a code change for which I currently estimate of between 8 and 24 hours work depending on how complex the 'at least' component is and what version of Moodle (2.3- will require a custom settings page etc. and the 2.4 version is yet to be created before the enhancement is made).
  4. I charge 35GBP per hour for software work, would you like to fund the enhancement?  Or I would do this at an indeterminate date in the future in my own time.

Kind regards,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

James Thomas發表於

HI Gareth,

I hope you understood that I was admitting to my own tetchiness, not yours or anyone else's. I do not find any recommendation to go into code teacher friendly, and that was the source of my statement, which I didn't explain. I make the same point in other forums. I live in the Czech Republic, so 35 anythings an hour is an unimaginable sum for me be it teaching, training or programming - all of which I do. 

The format we have now which shows one Section at a time with left and right pointing arrows to next and previous was my idea in a forum a couple of years ago, and the person I raised it with said yes it is a good idea and it's not possible at the moment. So hopefully, this current suggestion and several others of mine posted recently, most of which aim at teachers not having to go into code, will at some stage be realised. 

To be honest, I am surprised that the code change you mention is necessary, and that it would take so many programming hours. I don't doubt it, I'm just surprised. And if I had a grant, I'd happily send it your way because this community is an amazing manifestation of modern society's good will, of which you are clearly a fine exemplar. 

And it's not even 8 am on a Sunday morning 微笑

 

All the VERY best,

 

James

 

In reply to Julian Ridden

Re: Major Update to Grid Format

tatiana castrillon發表於

Hi we have a problem when we install the grid format. when we try to restore any course (with or without this format) the restore generates the next error

"Restore method process_grid is missing. It must be defined by a developer"

the only way to restore any course is delete the grid folder and we want a better solution.

Can you help us with that?

thanks

In reply to tatiana castrillon

Re: Major Update to Grid Format

tatiana castrillon發表於

solved with the next solution 

"Doing a search in Netbeans on the Moodle 2.2 code for "process_" in the php files reveals how this method is defined across different plugins.  With this Carlos it appears that the function 'process_topic' in the file 'course/format/grid/backup/moodle2/restore_format_grid_plugin.class.php' needs to be renamed to 'process_grid' to make this work, though I have not tested this as wish to concentrate on my own format first."

 

thanks

In reply to tatiana castrillon

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Tatiana,

The version in the plugin's database is out of date.  I fixed the code back on the 17th July 2012 and the above solution is only a part of the issue.  Please download a new 'zip' from https://github.com/PukunuiAustralia/moodle-courseformat_grid/tree/MOODLE_22_STABLE

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Dominic Jones發表於

What's the status of the grid format plugin now? I'm running 2.2 and want to know if I should remove the 'backup' folder before adding it to our Moodle.

Thanks

In reply to Dominic Jones

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Dominic,

The latest version https://moodle.org/plugins/pluginversion.php?id=3161 should be fine without removing the backup folder as it contains the fixed backup / restore code I added.

As always with all upgrades / plugin's make a full backup before installing.

Cheers,

Gareth

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Major Update to Grid Format

Dominic Jones發表於

Hi Gareth,

Thanks for your reply. Will be moving forwards with this soon and hopefully it will all function well! Thanks very much.

In reply to Julian Ridden

Re: Major Update to Grid Format

David Barrett發表於

Hi, Julian

If I wanted to set up my front page so that it had three rows of three icons in the grid, for example – or four by four, or whatever (I'm a bit of a symmetry freak) – is there any way to do so?

To put that another way, if I have six topics currently, I might end up with five topics on one row, spilling over to one 'orphaned' one on the next, which, to make matters worse, is ranged left, not even centred under the others. Not the look I'm after.

Can I specify the number of topics per row (assuming I don't exceed the possible width allowed by the theme I'm using)? Can I centre the topics/icons?

Cheers
David

In reply to David Barrett

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

I have now taken over the main stay of the Grid format development.

Ok, what version of Moodle and the Grid format are you running?

You say 'front page' and yet the format is a course format and cannot be applied (I think) to the front page.

The next release for M2.5, M2.4 and M2.3 will have centered grid icons (along with accessibility), please see https://moodle.org/mod/forum/discuss.php?d=236331 and https://moodle.org/mod/forum/discuss.php?d=237027.

Currently there is no way of specifying the dimensions of the grid in terms of x by y icons.  It might be possible to use the columns code from Collapsed Topics to do this with some complicated maths such that the last row has it's icons centered when there are less icons than the previous rows.  This would be an improvement that would take time to de-risk and implement along with an optional switch to turn it on / off as I don't think everybody would want it.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

David Barrett發表於

Hi, Gareth

Thanks for the quick reply. We're using Moodle 2.5, and I imagine the Powers that Be have installed the latest version of Grid format to suit. (I'm an end-user teacher, not a site admin.)

Pardon my misuse of the term 'front page'. Should I have said 'course page' or similar? I basically mean the first page a student goes to when they enter my course.

From what I understand, based on your reply and other reading I've done, if I have six topics they'll align themselves, starting from left to right, underneath Topic 0, and take up as much space is available to them. When they run out of space in one row, they'll flip down to the next row, starting from the left again.

In short, from what you're saying I understand (and please correct me if I'm wrong) that:

  • the icons will take up the available space, and the number in each row will depend the width available (factors such as block positioning and user screen resolution would affect this, for example); users can't specify the number of icons per row
  • a forthcoming release of the Grid format plugin will have the ability to centre grid icons 大眼睛

The second of these points is probably as important as any. Although I'm by no means a graphic designer, I do have my own (sad) aesthetic sensibility, and an off-centre block of icons would do my head in!

The Grid format is absolutely fantastic, and I'll ask my head office boffins to keep an eye out for the next iteration.

Thanks again for getting back to me!

Cheers
David

In reply to David Barrett

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

No problem, thanks for the praise 微笑.  The term 'front page' is perhaps technical.  When students log in they will be directed to what page is set up for them.  But they have to click on a course to have it laid out by the Grid format.  So indeed I think of it as the 'course page' - so many concepts to learn!

The look and feel of the forthcoming version can be seen in the screen shots and screen cast of the two links I gave.  So, yes, once the boxes run out of space then they flow to the next line and are automatically centred.  What you are saying is correct.

In editing mode you can make section 0 go into the grid and be shown in the same way as other sections in the grid.

Also the next version will have a highlight of the current section too as well as accessibility.  Everything you can see in the screen cast.

When the new version is released, your administrator should see a notification when they log in - possibly having to go to 'Notifications' - that a new version is available.

Cheers,

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

mart van der niet發表於

Love the format!

Just a question: am I correct in concluding that there is no easy way to force the number of icons that show in a row?

Anywhere in the css I can fix this?

 

Thanks in advance!

Mart

In reply to mart van der niet

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear Mart,

Thanks!

RE: "Just a question: am I correct in concluding that there is no easy way to force the number of icons that show in a row?"

As I've said above, no there is not.  And it would not be a trivial CSS fix to do this, it takes manipulation of the grid icons as they are created with the HTML list tags as I do in Collapsed Topics for the columns.  This is not a matter of transferring the code as some people would want it and some would not so would need to add a per course setting, a default setting and an ability to reset to default = lots of work and testing because IE might throw up some oddities.

Gareth

In reply to Gareth J Barnard

Re: Major Update to Grid Format

Richard Oelmann發表於
Core developers的相片 Plugin developers的相片 Testers的相片

It would also reduce the format's usefulness in a responsive theme - currently the grid will wrap onto a new line if the screen is not wide enough, while a fixed number of grid icons would almost certainly enforce a fixed width theme.

評比平均分數:Useful (1)
In reply to Gareth J Barnard

Re: Major Update to Grid Format

David Barrett發表於

Hi, Gareth

Just to let you know that the latest version has been installed for us. I've not noticed any major issues, and having the grid boxes centred is a dream. Being able to highlight the current unit of work is just a bonus – my students noticed it straight away, and made favourable comment.

Thanks so much for all your hard work.

Cheers
David

In reply to David Barrett

Re: Major Update to Grid Format

Gareth J Barnard發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片

Dear David,

Thank you so much for the feedback 微笑 as it's a lot of work to accomplish.  The keyboard navigation, current selected and navigation arrows took forty hours to code and test (not including back porting to M2.4 and M2.3).  The centering of icons an afternoon with the help of others and the current section about thirty mins as I coped the code from Collapsed Topics.

Thanks,

Gareth