# Regroup subpages

**URL:** <https://forum.getkirby.com/t/regroup-subpages/23924>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 12, 2021, 9:28pm UTC](https://forum.getkirby.com/t/regroup-subpages/23924 "2021-11-12T21:28:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![paubou](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/paubou/32/10761_2.png) [@paubou](https://forum.getkirby.com/u/paubou)\
**Post date:** [November 12, 2021, 9:28pm UTC](https://forum.getkirby.com/t/regroup-subpages/23924/1 "2021-11-12T21:28:08Z")

</div>

Hi,  
I’m building a website where projects can have subpages.  
I’d like to regroup all of these subpages somewhere in the panel (but also later in the frontend).  
I also would like to add pages that are not related to any project (so not a subpage) in that list.

I’ve been exploring the documentation but I don’t really know how to search for a solution. So I’m asking, should I make an album? Should I use `parent: site.index.findBy("template", "texts")` in a blueprint to regroup them ?

Thanks for the help.

---

<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 12, 2021, 10:05pm UTC](https://forum.getkirby.com/t/regroup-subpages/23924/2 "2021-11-12T22:05:51Z")

</div>

What do you mean by “regroup subpages”?

> [@paubou](#):
>
> Should I use `parent: site.index.findBy("template", "texts")`

A parent can only be a single page, but your query would return a page collection.

---

<div class="post-metadata">

**Author:** ![paubou](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/paubou/32/10761_2.png) [@paubou](https://forum.getkirby.com/u/paubou)\
**Post date:** [November 12, 2021, 10:29pm UTC](https://forum.getkirby.com/t/regroup-subpages/23924/3 "2021-11-12T22:29:22Z")

</div>

hi,  
by regroup subpages, I mean creating a specific page in the panel where i can find all of them regardless of their initial parent page where they were created.

---

<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 12, 2021, 10:44pm UTC](https://forum.getkirby.com/t/regroup-subpages/23924/4 "2021-11-12T22:44:22Z")

</div>

A pages section always has a single parent. If you want to query pages from all locations, you need a custom section, e.g. one of these plugins, that allows you to use a query:

- [PagesDisplay Section | Kirby CMS](https://getkirby.com/plugins/rasteiner/pagesdisplay)
- [GitHub - sylvainjule/kirby-pagetable: Display subpages in a flexible table section. Kirby 3 only.](https://github.com/sylvainjule/kirby-pagetable)

---

<div class="post-metadata">

**Author:** ![paubou](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/paubou/32/10761_2.png) [@paubou](https://forum.getkirby.com/u/paubou)\
**Post date:** [November 12, 2021, 10:55pm UTC](https://forum.getkirby.com/t/regroup-subpages/23924/5 "2021-11-12T22:55:24Z")

</div>

Alright,  
May I ask if you have another idea on how I could achieve this more simply?  
Having another type of organisation?  
What i’d like to achieve is to link articles to some projects in the panel, but to have a page for all those articles too (they all have the same template).  
It doesn’t really matter if I create them from the list and link them later (which makes me think, can I edit the blueprint so I can only add already existing subpages to my projects?)  
In a really simple way, i’d like to connect two pages (in my frontend & backend)…

I’d like later to be able to have a specific page in the frontend, where they are all shown.

---

<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 13, 2021, 11:39am UTC](https://forum.getkirby.com/t/regroup-subpages/23924/6 "2021-11-13T11:39:29Z")

</div>

> [@paubou](#):
>
> What i’d like to achieve is to link articles to some projects in the panel,

That could mean a [_pages field_](https://getkirby.com/docs/reference/panel/fields/pages) in a project blueprint where you could select one or more pages from a given set.

---

<div class="post-metadata">

**Author:** ![paubou](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/paubou/32/10761_2.png) [@paubou](https://forum.getkirby.com/u/paubou)\
**Post date:** [November 13, 2021, 8:03pm UTC](https://forum.getkirby.com/t/regroup-subpages/23924/7 "2021-11-13T20:03:14Z")

</div>

Thanks,  
it was exactly what I was looking for.
