Menu

#564 (ok 3.4) Left frame table filter visibility config option

closed-accepted
1
2011-05-11
2010-08-30
No

I don't need the table filter in the left frame so I added config option to hide it. I just do this after every update, here's what I did with the 3.3.6 source:

- In libraries/config.default.php add the following beginning from line 781

/**
* display table filter
*
* @global boolean $cfg['LeftDisplayTableFilter']
*/
$cfg['LeftDisplayTableFilter'] = TRUE;

- In navigation.php change row 300 to:

if ($table_count && $GLOBALS['cfg']['LeftDisplayTableFilter']) {

- To not to show the filter add this to your config.inc.php:

$cfg['LeftDisplayTableFilter'] = FALSE;

Discussion

  • Herman van Rink

    Herman van Rink - 2010-09-02
    • assigned_to: nobody --> helmo
    • summary: Left frame table filter visibility config option --> (ok 3.4) Left frame table filter visibility config option
    • status: open --> open-accepted
     
  • Herman van Rink

    Herman van Rink - 2010-09-02

    Your patch was merged in the repository, thanks.

     
  • Herman van Rink

    Herman van Rink - 2010-09-02
    • priority: 5 --> 1
     
  • Kai Schätzl

    Kai Schätzl - 2010-11-30

    I just came about this patch as I find the new filter box quite annoying most of the time. However, there's also cases where it is useful. Instead of using a bool value I used this syntax:
    if ($table_count > 40) {
    which displays all tables on a 1280x1024 screen and the filter only if the table count exceeds this.
    Wouldn't this be actually better than using a bool true/false as it adds more flexibility? As 3.4 isn't out yet there is still time to change this.

     
  • Herman van Rink

    Herman van Rink - 2010-11-30

    Interesting point, we would probably want to rename the config option to something like LeftDisplayTableFilterMinium

    Obviously the setup form and documentation would also have to be updated.

     
  • Herman van Rink

    Herman van Rink - 2010-12-02

    Thanks kai-schaetzl it's just committed for 3.4.0-alpha3-dev

     
  • Michal Čihař

    Michal Čihař - 2011-05-11
    • status: open-accepted --> closed-accepted