Turning autolinking off for specific words

Turning autolinking off for specific words

by Karen Baskett -
Number of replies: 4
Hi

Is it possible to turn autolinking to glossary off for specific words? For example, in the course description when learners login, they are getting confused between a word underlined (through the glossary) and the actual course title. I'd like to not have this particular instance linked to the glossary, but still leave the other instances of the word linked throughout the course.

Thanks

Karen
Average of ratings: -
In reply to Karen Baskett

Re: Turning autolinking off for specific words

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Karen. There are two ways to do this.

1- automatic

In the HTML editor, select the whole text you do not want autolinked and click on the "Prevent automatic linking" button (see attached screenshot).

2- manual

In the HTML editor, click on the Toggle HTML source button and enclose the part of your text you do not want autolinked with these tags: <nolink>...</nolink>.

Hope that helps,

Joseph

NOTE.- Unfortunately, the first method sometimes ruins your text format, which is why I prefer the second method.

Attachment image-0000.jpg
In reply to Joseph Rézeau

Re: Turning autolinking off for specific words

by john zhang -
Good tip!

By the way, how about some words are just part of another word and this part gets autolinked.

To give one example, we have PI as an abrevation of "Primary Investigator". Now, all my "spirit" gets linked with "spirit"!

how to avoid this situation?

thanks.

john
In reply to john zhang

Re: Turning autolinking off for specific words

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
In Glossary entry edit window, check the Match whole words only box.
Joseph
Attachment image-0000.jpg
In reply to Joseph Rézeau

Re: Turning autolinking off for specific words

by Karen Baskett -
Thank you so much Joseph - the second way was perfect.