Report any technical problems you discover and discuss solutions.

Glossary not displaying on words within flashcard

  • filipa.santos
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 5 ans 9 mois #6989 par filipa.santos
Glossary not displaying on words within flashcard a été créé par filipa.santos
Hello there,

The glossary isn't displaying a hover over box (or indeed highlighting the words either) for any words added that are contained within a flash card. Is this a bug or just a limitation of the feature? Any ideas on a fix?

Thanks!
Filipa

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 9 mois #6990 par JohnSmith
Réponse de JohnSmith sur le sujet Glossary not displaying on words within flashcard
Hi Filipa,

Looks like you found a bug! Thanks for making us aware - I will get this fixed for the next release...

In the meantime, try adding a Script optional property to the main Learning Object in the editor and then put this code in the box:
Code:
function x_findText(pageXML, exclude, list) { var attrToCheck = ["text", "instruction", "instructions", "answer", "description", "prompt", "question", "option", "hint", "feedback", "summary", "intro", "txt", "goals", "audience", "prereq", "howto", "passage", "displayTxt", "side1", "side2"], i, j, len; if (pageXML.nodeName == "mcqStepOption") { attrToCheck.push("name"); } // don't include name normally as it's generally only used in titles for (i=0, len = pageXML.attributes.length; i<len; i++) { if ($.inArray(pageXML.attributes[i].name, attrToCheck) > -1) { x_insertText(pageXML.attributes[i], exclude, list); } } for (i=0, len=pageXML.childNodes.length; i<len; i++) { if (pageXML.childNodes[i].nodeValue == null) { x_findText(pageXML.childNodes[i], exclude, list); // it's a child node of node - check through this too } else { if (pageXML.childNodes[i].nodeValue.replace(/^\s+|\s+$/g, "") != "") { // not blank x_insertText(pageXML.childNodes[i], exclude, list); } } } }

If you are using the latest version or a relatively recent version then that should fix your issues. Use this patch in any LOs where you need glossary terms within Flashcards.

Regards,

John
Les utilisateur(s) suivant ont remercié: filipa.santos

Connexion ou Créer un compte pour participer à la conversation.

  • filipa.santos
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 5 ans 8 mois #7024 par filipa.santos
Réponse de filipa.santos sur le sujet Glossary not displaying on words within flashcard
Thanks so much John, the code has worked for me! :)

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.128 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo