glossary linking only on selected pages

glossary linking only on selected pages

Gerry Jenkins
Number of replies: 5

Hi, I was excited by the new levels of filter control in moodle 2.0

I have always wanted to only have glossary linking show on a few selected activities and html page resources.

But even with the Site level, course level, and activity/resource level of filter control, I can't find a combination to turn off autolinking as the default and the use the specific actifity filter to turn it on for that part.

Anyone know a way besides using the <span class="nolink"> tag explicitly around every phrase in every page you don't want linking?

평균 등급 : -
In reply to Gerry Jenkins

Re: glossary linking only on selected pages

Joseph Rézeau
Core developers 사진 Particularly helpful Moodlers 사진 Plugin developers 사진 Testers 사진 Translators 사진

Hi Gerry,

Which activity/ies do you actually want to turn the glossary autolinking OFF in?

Joseph

In reply to Joseph Rézeau

Re: glossary linking only on selected pages

Gerry Jenkins

I teach a computer basics class and have a large glossary of computer terms.

I have designed a glossary list for each topic to study. these are web page resources within moodle. I would like to just link from these pages and not from any of my assignments or quizes, or anything else.

To do this in 1.9,  I had to patch the quiz moodle code, and us nolink tags on everhthing else. It was a lot of work.

In reply to Gerry Jenkins

Re: glossary linking only on selected pages

Joseph Rézeau
Core developers 사진 Particularly helpful Moodlers 사진 Plugin developers 사진 Testers 사진 Translators 사진

@Gerry,

For each of the activities and resources that you want to not autolink to your glossary, go to its Settings page and set the autolinking to OFF.

See attached screenshot example for a quiz.

Joseph

Attachment 04-08-2011 23-27-04.jpg
In reply to Joseph Rézeau

Re: glossary linking only on selected pages

Gerry Jenkins

I propose that

the course level filter for autolink, if set to default, default to the site settings, whether on or off

that the module item level of filter, if set to default, inherits its setting from the course level setting.

And if the item level is set to on or off then it overrides the inherited setting from course or site.

That way you could set a course to off, and any items that were not explicitly set to on/off would all follow the course setting.

So it would be easy to have most pages off or most pages on, controlled by the course setting, and then just a few indiviudual module items could be set to on or off (overriding the course setting)

This seems like it would be a very simple change in the code to me. And would save a lot of time in the cases where there is a predominate need for off or on in most module items for a course.

In reply to Gerry Jenkins

Re: glossary linking only on selected pages

Joseph Rézeau
Core developers 사진 Particularly helpful Moodlers 사진 Plugin developers 사진 Testers 사진 Translators 사진

@ Gerry,

Your proposal makes sense. Please go ahead and post a "new feature" report in the bug tracker. Even better, if you can, propose a patch to make this new feature work.

Joseph