text

text

by Killian Holmes -
Number of replies: 1

My understanding of this code: <span class="link">text</span> is that it should link to a specific glossary item. In this case it would be a glossary entry for the word text. However, it doesn't seem to generate the link.

I've successfully used: <span class="nolink">text</span> to break the glossary link.

Both of these are documented: https://docs.moodle.org/32/en/Autolinking

Why is a link not being generated for <span class="link">text</span>?


Average of ratings: -
In reply to Killian Holmes

Re: glossary auto-linking

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hello,

Glossary auto-linking will only work if:

  1. The glossary auto-linking filter is enabled
  2. In the glossary settings 'Automatically link glossary entries' is set to Yes
  3. For each glossary entry the checkbox 'This entry should be automatically linked' is ticked.

(from Glossary auto-linking filter).

(Apologies for the confusing info in Autolinking, which has now been removed.)

Average of ratings: Useful (1)