Modifying glossary filter so tooltips display definition instead of concept name.
I think it may be possible to tweak the file glossary/filter.php but I wanted to check if anyone had any easier thoughts or suggestions before I attempt this!
Tárgy: Modifying glossary filter so tooltips display definition instead of concept name.
Re: Tárgy: Modifying glossary filter so tooltips display definition instead of concept name.
Joseph
Tárgy: Re: Tárgy: Modifying glossary filter so tooltips display definition instead of concept name.
Re: Tárgy: Re: Tárgy: Modifying glossary filter so tooltips display definition instead of concept name.
Tárgy: Re: Tárgy: Re: Tárgy: Modifying glossary filter so tooltips display definition instead of concept name.
I see. OK, thanks. Maybe we will add some mp3s to the Glossaries so as they gave more info in the big window. Oh, one more thing. Do you know how can I specify a size parametre for glossary window? It is too big and I can not get it to open smaller automatically in a smaller window. It is resizeable manually but it would be much better to specify a size.
Thanks! Deni
Re: Modifying glossary filter so tooltips display definition instead of concept name.
Deni,
If you are willing to hack your moodle core files this is where you will find the glossary popup window size parameters (for Moodle 1.8). In file mod/glossary/filter.php line 137 etc.
$href_tag_begin = '<a class="glossary autolink glossaryid'.$concept->glossaryid.'" title="'.$title.'" '. 'href="'.$CFG->wwwroot.'/mod/glossary/showentry.php?courseid='.$courseid.
'&concept='.$encodedconcept.'" '.
'onclick="return openpopup(\'/mod/glossary/showentry.php?courseid='.$courseid.
'\&concept='.$encodedconcept.'\', \'entry\', '.
'\'menubar=0,location=0,scrollbars,resizable,width=600,height=450\', 0);">';
replace width and height with your preferred values.
Joseph
Tárgy: Re: Modifying glossary filter so tooltips display definition instead of concept name.
(I use 1.9.)
Thank you!
(BTW. I have written some notes to Adriane's Drag & Drop ordering and matching questions. I need help in installation. Can you help me?) Sorry for mentioning here but writing here seems to worth a lot! ;)
Thanks!
Deni
Re: Tárgy: Re: Modifying glossary filter so tooltips display definition instead of concept name.
Ang: Modifying glossary filter so tooltips display definition instead of concept name.
Re: Ang: Modifying glossary filter so tooltips display definition instead of concept name.

Re: Ang: Modifying glossary filter so tooltips display definition instead of concept name.
Lezlie: "I believe the glossary will already do this. We use Moodle 1.9. My linked glossary definitions used to appear with a mouse-over without the need to open in a new window."
As fas as I can remember this is not true. The standard behavior of glossary auto-links is for the user to click the hyperlinked word, which opens up the relevant glossary definition in a popup window. There is not setting to show the definition on mouse hover, this is why I proposed a hack in MDL-18213.
Joseph
Re: Ang: Modifying glossary filter so tooltips display definition instead of concept name.
This is a bit like the Great Blog Debate that smouldered for years. The problem is often that the developer sees the module being used one way while other users would like to use it another. Michael Dougiamas used to insist that blogs in Moodle should on no account allow comments, because blogging would distract students from activities and there were other modules, such as forums, which kept blog-style interaction in the learning context. That may have been true for many installations, but for many others, Moodle blogs would have held benefits. Now I see comments can be enabled if desired. From the user end, that's a simple solution to the problem of whether blogging should be allowed or not.
I suggest the question of whether definitions display in pop-ups or tooltips is a similar issue. When the developers have time to put in the code, users should have the option of displaying definitions in pop-ups or tooltips.