# Config.php - panel "false" is not working

**URL:** <https://forum.getkirby.com/t/config-php-panel-false-is-not-working/20006>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 9, 2020, 7:38pm UTC](https://forum.getkirby.com/t/config-php-panel-false-is-not-working/20006 "2020-11-09T19:38:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/denis/32/5562_2.png) [@Denis](https://forum.getkirby.com/u/Denis)\
**Post date:** [November 9, 2020, 7:38pm UTC](https://forum.getkirby.com/t/config-php-panel-false-is-not-working/20006/1 "2020-11-09T19:38:36Z")

</div>

Hi!  
I made some configurations to my Kirby-installation (config.php):

```
<?php
    return [
     // 'false' deaktiviert das Panel
     	'panel' => false,
  
     // verschiebt den Pfad des Panels
        'panel' => ['slug' => 'authorized-personnel-only'],

     // Slug-Generator auf Deutsch setzen (Umlaute in URL umwandeln)
        'slugs' => 'de', 

     // für bessere Typografie, macht z. B. aus drei Punkten die "ellipsis"
        'smartypants' => true, 

     // aktiviert Markdown-Extras	
        'markdown' => ['extra' => true], 

     // ändert Kirby's Standard-Namen
        'home' => 'fotografien', 
        'error'	=> 'fehler',
     ];

```

My problem: The panel is showing up, but it should not. Yes - I’ve changed the slug for the panel, so I can’t forget to change the path, when I want to activate the panel…

Thank’s a lot! 🙂

Dennis

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 9, 2020, 8:18pm UTC](https://forum.getkirby.com/t/config-php-panel-false-is-not-working/20006/2 "2020-11-09T20:18:39Z")

</div>

If you use the same key (in this case `panel`) twice, you override the first setting. An array (and this is an array what you return), must always have unique keys, so your setup doesn’t work.

---

<div class="post-metadata">

**Author:** ![Denis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/denis/32/5562_2.png) [@Denis](https://forum.getkirby.com/u/Denis)\
**Post date:** [November 9, 2020, 8:33pm UTC](https://forum.getkirby.com/t/config-php-panel-false-is-not-working/20006/3 "2020-11-09T20:33:09Z")

</div>

Hi Sonja!

Thank you for your help. 🙂

So if I get you right, there is no way to change the slug and deactivate the panel in the same config-file. Okay - I’ll find a workaround for my needs.

Dennis

[edit] I switched the positions, the “false” as second option. When I want to activate the panel I just have to toggle the comment. PHP is confusing. to newbies… 🤪[/edit]

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 9, 2020, 9:15pm UTC](https://forum.getkirby.com/t/config-php-panel-false-is-not-working/20006/4 "2020-11-09T21:15:09Z")

</div>

You can just comment the option that you don’t need:

```auto
<?php
    return [
     // 'false' deaktiviert das Panel
     	'panel' => false,
  
     // verschiebt den Pfad des Panels
      // 'panel' => ['slug' => 'authorized-personnel-only'],

     // Slug-Generator auf Deutsch setzen (Umlaute in URL umwandeln)
        'slugs' => 'de', 

     // für bessere Typografie, macht z. B. aus drei Punkten die "ellipsis"
        'smartypants' => true, 

     // aktiviert Markdown-Extras	
        'markdown' => ['extra' => true], 

     // ändert Kirby's Standard-Namen
        'home' => 'fotografien', 
        'error'	=> 'fehler',
     ];

```

Then when you want to activate the Panel, uncomment the second option and comment the first one. The order is irrelevant in that case.
