# Subpages in virtual pages on the panel

**URL:** <https://forum.getkirby.com/t/subpages-in-virtual-pages-on-the-panel/24960>\
**Category:** Questions\
**Tags:** v3\
**Created:** [March 13, 2022, 6:03am UTC](https://forum.getkirby.com/t/subpages-in-virtual-pages-on-the-panel/24960 "2022-03-13T06:03:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![daryl](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@daryl](https://forum.getkirby.com/u/daryl)\
**Post date:** [March 13, 2022, 6:03am UTC](https://forum.getkirby.com/t/subpages-in-virtual-pages-on-the-panel/24960/1 "2022-03-13T06:03:13Z")

</div>

Good Day,  
can you help me how to create subpages from virtual pages on the panel?

I am trying to create a virual pages from a database.  
my goal is to create a multiple subpages in the panel  
let us say I have a tables “owner” , “brand”, “color” ,  
what I want to see is that when I opened the owner John, I want a list of pages of brands only for owner John. and if I open the brand1, I want t see the colors associate with the brand1.

how can I do that?

Owner John

- Brand1  
- Color1

Owner Doe

- Brand2
  - Color2

thanks in advance. and more power

---

<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:** [March 13, 2022, 10:33am UTC](https://forum.getkirby.com/t/subpages-in-virtual-pages-on-the-panel/24960/2 "2022-03-13T10:33:06Z")

</div>

> [@daryl](#):
>
> create subpages from

Since your data is stored in the database, you probably mean display those subpages, not create them?

---

<div class="post-metadata">

**Author:** ![daryl](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@daryl](https://forum.getkirby.com/u/daryl)\
**Post date:** [March 13, 2022, 4:01pm UTC](https://forum.getkirby.com/t/subpages-in-virtual-pages-on-the-panel/24960/3 "2022-03-13T16:01:25Z")

</div>

hi @texnixe , you are right. display **brand1** as lists of pages under **owner John**.

---

<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:** [March 13, 2022, 4:31pm UTC](https://forum.getkirby.com/t/subpages-in-virtual-pages-on-the-panel/24960/4 "2022-03-13T16:31:02Z")

</div>

Kirby doesn’t support queries in pages sections, so to achieve this, you would have to use the Pagesdisplay section plugin:

> **[PagesDisplay Section](https://getkirby.com/plugins/rasteiner/pagesdisplay)**
>
> Display any page list in a section. Any parent, many parents, filtered, don't care.

This would not display a pages’ tree, though, but just the direct subpages of an owner. The subpage brand-1 could then have a list of subpages again.
