Glossary

Auto-linking global glossary OFF, but course Glossary ON

 
Wazza
Auto-linking global glossary OFF, but course Glossary ON
Particularly helpful Moodlers

HI,

Auto-linking to global glossary OFF, but to local (course) Glossary ON. Is that setting available?

It seems you can only turn auto-linking on or off in a course for 'all' glossaries, local AND global.

Is this right?

 
Average of ratings: -
Picture of Jon Bolton
Re: Auto-linking global glossary OFF, but course Glossary ON
Particularly helpful MoodlersTesters
You should be able to set filters at site, course and activity level. If you want global autolinking off but available in courses, set the site wide settings for that filter to “Off but available”. When you’re in the Global glossary, the admin block will show a link for filters - make sure that’s set to Off. When you’re in the Course glossary, the admin block will also show a link for filters - set that to On. 
 
Average of ratings: -
Wazza
Re: Auto-linking global glossary OFF, but course Glossary ON
Particularly helpful Moodlers

Thanks, but figured that part out. This solution means that all other courses (1000+) have to enable the filter manually to have the links to the global glossary, right?

 
Average of ratings: -
Picture of Jon Bolton
Re: Auto-linking global glossary OFF, but course Glossary ON
Particularly helpful MoodlersTesters

Ah, you never said you'd figured that bit out wink

No way that I can think of to do it through the interface then.

Do you have access to the database? Or have a plugin like Moodle Adminer? If so, and with all the normal caveats about the risks, you can maybe run a query on the 'mdl_filter_active' table. *

In that table, the 'active' field has 3 numbers:

  • -9999 is DISABLED
  • -1 is OFF BUT AVAILABLE
  • 1 is ON
UPDATE `mdl_filter_active`
SET
`filter` = 'glossary',
`active` = '1'
WHERE
`filter` = 'glossary'
AND `contextid` = 'xxx'
AND `active` = '-1';

You'll find the value for xxx in the url when you are in the filters page of your global glossary. It will look something like yourmoodle.org/filter/manage.php?contextid=874

*Edit - no that won't work either as you'll have to set the context id for each one, and that's not easy to find sad You might need to have a script written to run it for you. It's probably better than editing 1000+ courses.

 
Average of ratings: Useful (1)
Wazza
Re: Auto-linking global glossary OFF, but course Glossary ON
Particularly helpful Moodlers

Thanks, you are putting me in the right direction though smile

 
Average of ratings: -