Posts made by Joseph Rézeau

Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
If a) you absolutely want your alphabetical sorting to work and b) are confident enough to modify the moodle core and c) are the admin of your moodle site... then you can very easily achieve what you want by making just a small change to file moodle/blocks/glossary_random/block_glossary_random.php around line 75,
change
if ($entry = get_records_sql(' SELECT concept, definition, format '.
' FROM '.$CFG->prefix.'glossary_entries'.
' WHERE glossaryid = '.$this->config->glossary.
' AND approved = 1 '.
'ORDER BY timemodified '.$SORT, $limitfrom, $limitnum)) {
to
if ($entry = get_records_sql(' SELECT concept, definition, format '.
' FROM '.$CFG->prefix.'glossary_entries'.
' WHERE glossaryid = '.$this->config->glossary.
' AND approved = 1 '.
'ORDER BY concept '.$SORT, $limitfrom, $limitnum)) {
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Joseph (or is it Len?),

Please remember the usual forum rule: only one question per post.wink I will address your question #1, re the order in which glossary entries are displayed in the Random Glossary Entry block.

You are correct, when you select Next Entry, the online Help says: The option Next entry will cycle through the entries in order. Unfortunately it does not specify that "in order" means in the order in which the entries were created in the Glossary, not the alphabetical order, as you wish.

The way these settings work should be improved in Moodle core, and I will post a report in the bug tracker. When I've done that I will put the bug tracker report reference here so that you (and other interested moodle users) can vote for it.

By the way your idea of having a sequence of 2 "Random Glossary Entry" blocks, one with the "puzzle of the day" and the other with the solution (but on the following day) is quite ingenuous.smile

Joseph