Oh yes, silly me. I was a bit caught up in several pieces of work, that's doesn't really make to much sense. I'll shed a little more light.
My problem is that I have the word "Culture" in my glossary. I also have the "safety" in this glossary and the multi-word phrase "safety culture".
I want "safety culture" to be auto-linked, but instead the term "safety" is auto-linked in the description fields of the glossary term "Culture" instead. This should be obvious by looking at my previous post. If you notice the term safety culture is actually linked to my glossary on my moodle.
I have tried every combination of the available options within the glossary settings & editing options on each entry and I cannot get this to work reliably.
I've tried toggling the following options:-This entry should be automatically linked
- always onThis entry is case sensitive - on & offMatch whole words only - on & off
I have also experienced similar problems with other multi-word phrases linking to a similar single term that makes up the phrase. The single word which is auto-linked is always the first word, the following words in the phrase are ignored and not linked at all.With some similar phrases by using the "match whole words only" option I can tweak the language to link correctly, but this is too fiddly and no solution at all.
To get around the problem of multi-word phrases not being auto-linked correctly I have added manually some html and linked the mutli-word terms within the glossary description; as the glossary ignores text within href's. This Effectively forces the auto-link.
Here is what I used :
<a href="http://www.sheilds-elearning.co.uk/mod/glossary/showentry.php?courseid=41&concept=safety+culture" title="safety culture" class="glossary autolink glossaryid21">safety culture</a>.
So it looks like this :safety culture
.and an explanation of use from my notes.
<a class="glossary autolink glossaryidXX" title="Glossary: XXXXXXXXX" href="http://www.sheilds-elearning.co.uk/mod/glossary/showentry.php?courseid=41&concept=multiword1+multiword2">TERM_HERE!!</a>.
OK so where is says :
glossaryid - replace with the ID number of the glossary term.
title="Glossary: " - replace with the glossary term
href="http://www.sheilds-elearning.co.uk/mod/glossary/showentry.php?courseid=&concept=multiword1+multiword2" - Ensure ID number course of the course is correct : replace with course ID
href="http://www.sheilds-elearning.co.uk/mod/glossary/showentry.php?courseid=41&concept=+" - replace with 1st part of the phrase, replace with the 2nd part of the phrase, use "+" symbol to add more words
></a> - replace with glossary term/phrase
This method works and will produce the mouse hover/help icon and link correctly overriding any wrongly linked terms.As a side note: I have also used the onclick code for the pop-up window, but this then prevents me from re-visiting the editor and switching to code view to see the html. But this isn't a problem. I'd rather have a fix for the actual issue than a workaround.
Thanks for any help you can offer