Is it possible to remove the "Category" tab from Glossary?

Is it possible to remove the "Category" tab from Glossary?

Nosūtīja NN NN
Atbilžu skaits: 5
Hi,

I would like to know if it is possible to remove the tabs from the Glossary page? I would like to remove the "Browse by Category", "Browse by Author" and "Browse by Date" tabs. Is this at all possible? and if so, how/where would I start looking?

I am a developer, so I don't mind if it involves some rather technical procedure to remove it.

TIA

Julian
Vidējais novērtējums: -
Atbildot uz Joseph Rézeau

Re: Is it possible to remove the "Category" tab from Glossary?

Nosūtīja NN NN
Hi Joseph,

Thanks, I'm going to implement this right away smaidīgs

Luckily I only have the one Glossary, so doing this for the entire site suits me fine.

Thanks again for your help.
Atbildot uz NN NN

Re: Is it possible to remove the "Category" tab from Glossary?

Nosūtīja Alex Ferrer

Hi.

I know it's a very old argument, but I've had that question now. To fix it I went to the glossary / tabs.php file and there is tabs.


    $browserow[] = new tabobject(GLOSSARY_STANDARD_VIEW,
                                 $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=letter',
                                 get_string('standardview', 'glossary'));

    $browserow[] = new tabobject(GLOSSARY_CATEGORY_VIEW,
                                 $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=cat',
                                 get_string('categoryview', 'glossary'));

    $browserow[] = new tabobject(GLOSSARY_DATE_VIEW,
                                 $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=date',
                                 get_string('dateview', 'glossary'));

    $browserow[] = new tabobject(GLOSSARY_AUTHOR_VIEW,
                                 $CFG->wwwroot.'/mod/glossary/view.php?id='.$id.'&mode=author',
                                 get_string('authorview', 'glossary'));


Removing (or canceling) in the code tab will not want to show the problem is solved.

Greetings.

Atbildot uz Alex Ferrer

Re: Is it possible to remove the "Category" tab from Glossary?

Nosūtīja Jon Bolton
Particularly helpful Moodlers attēls Testers attēls

Or you could just the easier way of editing the global Glossary settings...

https://docs.moodle.org/31/en/Glossary_settings#Site_administration_settings


Atbildot uz Jon Bolton

Re: Is it possible to remove the "Category" tab from Glossary?

Nosūtīja Alex Ferrer

Great, I did not know. But it seems that is from 3.X version of moodle.
I work with version 2.8.10 and there is no such function
... bēdīgs