Totara Learn Open Discussions

Linking directly to a glossary entry

 
Alex Virtue
Linking directly to a glossary entry
par Alex Virtue, Thursday 5 October 2023, 03:32
Groupe Partners

It seems that it's possible to isolate a single glossary entry via a URL.
The only way I've found to trigger this is:

  • Edit an entry

  • Click save or cancel

The page that you are returned to looks like "/mod/glossary/view.php?id=xx&mode=entry&hook=xx" where "id" appears to be the course id and "hook" appears to be the id of the glossary item.

When sharing this URL to an unauthorised user they are, of course, re-directed to the login page. Once authorised they are re-directed to "/mod/glossary/view.php?id=xx&mode=entry" which brings them to the glossary, but looses the "hook" value, thus showing a blank glossary until they start to navigate manually.

Does anyone know of a better way to link directly to a glossary entry?

Craig Eves
Re: Linking directly to a glossary entry
par Craig Eves (Totara Support), Thursday 5 October 2023, 15:11
Groupe Totara

Hi Alex

This may be a better way

  • Allow glossary autolinking under manage filters

  • Add the entry in the glossary in a course

  • Autolink the glossary entry

  • Add the term in a label and hide the label so it is not visible to learners

  • Hover over the label to copy the glossary link

The link it should look something like sitename/mod/glossary/showentry.php?eid=2&displayformat=dictionary

regards

Alex Virtue
Re: Linking directly to a glossary entry
par Alex Virtue, Tuesday 31 October 2023, 03:11
Groupe Partners

This appears to do exactly what we need. Thanks Craig!