# Exclude a page from the search in the panel

**URL:** <https://forum.getkirby.com/t/exclude-a-page-from-the-search-in-the-panel/27354>\
**Category:** Questions\
**Tags:** v3\
**Created:** [December 21, 2022, 1:28pm UTC](https://forum.getkirby.com/t/exclude-a-page-from-the-search-in-the-panel/27354 "2022-12-21T13:28:22Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mickaeldurand](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/mickaeldurand/32/8022_2.png) [@mickaeldurand](https://forum.getkirby.com/u/mickaeldurand)\
**Post date:** [December 21, 2022, 5:21pm UTC](https://forum.getkirby.com/t/exclude-a-page-from-the-search-in-the-panel/27354/3 "2022-12-21T17:21:51Z")

</div>

Kirby 3.8.2  
PHP 8.0

Thanks, I’ll look at the documentation.

It probably bug because it tries to list users?

I used the following example:

> [@Building user profile pages in Kirby 3](https://forum.getkirby.com/t/building-user-profile-pages-in-kirby-3/12457/15):
>
> I suggested to use a model instead of this template stuff… Create a members page in /content with a members.txtand then this model members.php \<?php class MembersPage extends Page { public function children() { $usersPages = []; $users = kirby()-\>users(); foreach ($users as $key =\> $user) { $userPages[] = [ 'slug' =\> Str::slug($user-\>id()), // or username if unique 'num' =\> $user-\>indexOf($users), 'template' =\> 'member', 'mod…

```auto
<?php
class MembersPage extends Page
{
  public function children()
  {
    $usersPages = [];
    $users = kirby()->users();
    foreach ($users as $key => $user) {
      $userPages[] = [
        'slug' => Str::slug($user->firstname() ." ". substr($user->id(), 0, 3)), // or username if unique
        'num' => $user->indexOf($users),
        'template' => 'member',
        //'model' => 'members',
        'member_url' => $user->firstname() ." ". $user->namefamily(),
        'content' => [
          'user' => $user,
          'name' => $user->name(),
          'title' => $user->firstname() ." ". $user->namefamily(),
          'firstname' => $user->firstname(),
          'namefamily' => $user->namefamily(),
          'member' => $user->member(),
          'sex' => $user->sex(),
          'birthday' => $user->birthday(),
          'street' => $user->street(),
          'zip' => $user->zip(),
          'city' => $user->city(),
          'country' => $user->country(),
          'phone' => $user->phone(),
          'phonemobile' => $user->phonemobile(),
          'licence_date' => $user->licence_date(),
          'size' => $user->size(),
          'weight' => $user->weight(),
          'bio' => $user->bio(),
          'url_strava' => $user->url_strava(),
          'photo' => $user->file(),
          // Options du select
          'options' => $user->blueprint()->field('sex'),
          // Structure
          'social_events_listing' => $user->social_events_listing()->toStructure()->toArray(),
           // more fields here
        ]
      ];
    }
    return Pages::factory($userPages, $this);

  }
}

```

---

_[View the full topic](https://forum.getkirby.com/t/exclude-a-page-from-the-search-in-the-panel/27354)._
