Is there anybody who understands the parameter tabselectedtofront?

Is there anybody who understands the parameter tabselectedtofront?

by Eduardo Domínguez Vázquez -
Number of replies: 1
Hi, folks.

I've been checking all the configuration parameters in moodle and I've found one of them that seems to be useless:

tabselectedtofront

Setting this parameter to 'yes' or 'no" is doing the same... ok, may be I've got to go to the optician but I haven't found any page where I can see the difference.
Average of ratings: -
In reply to Eduardo Domínguez Vázquez

Re: Is there anybody who understands the parameter tabselectedtofront?

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Eduardo,

if I'm not wrong that configuration setting is used to define if, for tabs within the same level expanding visually over more than one "row", the row with the selected tab must be moved "to front" (I think it's an effect that Windows OS uses to do with rows, moving the selected down, like being in a pile).

In Moodle, AFAIK, currently all tabs having more than one row are used as "sub-tabs" (i.e. for each tab selected in the main row, a list of options is showed in the secondary row).

So perhaps this setting could be erased from Moodle.

The only notable exception I've been able to find not using the "sub-tabs" concept explained above are the glossary tabs, where tabs are using two rows and all them are "main-tabs". Curiously, setting $CFG->tabselectedtofront breaks correct visualization of such glossary tabs so, definitively I would:

1) Delete that setting from DB.
2) Delete that setting from admin pages.
3) Delete depending code from weblib.php

+1 for that unless some unknown reason prevents that.

Ciao smile

Edited: I've created track MDL-8746 related to this.