# Panel: existing subpages are not displayed

**URL:** <https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945>\
**Category:** Questions\
**Tags:** v2\
**Created:** [January 2, 2016, 11:33am UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945 "2016-01-02T11:33:11Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [January 2, 2016, 11:33am UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/1 "2016-01-02T11:33:11Z")

</div>

My dev website runs on win10-XAMPP and uses the demo content from [https://github.com/getkirby/starterkit](https://github.com/getkirby/starterkit) with Kirby 2.2.3.

I want to change all the contents e.g. of the path `/projects` using the panel and to avoid, that any (new) sub pages can be added using the panel. But all existing subpages (currently: Project A, Project B and Project C) should remain editable, especially if they are created or updated via FTP.  
It may be that there should be no subpages of the path `/projects` in the future.

If I change

```ini
pages:
  template: project

```

to

```ini
pages: false

```

in the blueprint `\site\blueprints\projects.php`, no (existing) subpages are displayed in the panel `/panel/pages/projects/edit` on the left.  
I think this “not showing of existing subpages” is an error, no matter what is in the blueprint.

[added:]  
It depends on the code, whether these old subpages are visible in the website (frontend) any more or not.  
But we cannot control that in the panel, which is the backend for all editors and admins, if they have no FTP access to the webserver.

---

<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:** [January 2, 2016, 11:46am UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/2 "2016-01-02T11:46:13Z")

</div>

No, this is not a bug; for what you want to achieve, you can limit the number of subpages:

```nohighlight
…
pages:
  max: 3
…

```

The `pages: false` setting is made to not allow subpages, not even ones that were created before.

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [January 2, 2016, 11:49am UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/3 "2016-01-02T11:49:23Z")

</div>

Yes, I know, but

```ini
  max: 0

```

does not work (if no subpages of the path /projects should be there in the future).

If you are correct with:

> [@texnixe](#):
>
> The pages: false setting is made to not allow subpages, not even ones that were created before.

then it is not possible to edit or delete these old subpages in the panel.  
Then it depends on the code, whether these old subpages are visible in the website (frontend).

---

<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:** [January 2, 2016, 11:51am UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/4 "2016-01-02T11:51:22Z")

</div>

If you want to keep the three existing page but disallow adding more pages, you have to set `max:3`, not `max:0`.

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [January 2, 2016, 11:55am UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/5 "2016-01-02T11:55:02Z")

</div>

> [@anon77445132](#):
>
> It may be that there should be no subpages of the path /projects in the future.

No, it may be that there should be no subpages of the path /projects in the future and so  
`max: 3`  
or  
`max: 1`  
is wrong.

If my error is solved, nobody should have a problem.

---

<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:** [January 2, 2016, 12:01pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/6 "2016-01-02T12:01:13Z")

</div>

Seems that `max: x` does not work in my install at all, so I can’t test this.

Edit: Ok, I tested this in a fresh install, and `max:0` has the same effect as `pages: false`, so no pages are shown in the panel. But that’s exactly the behavior I would expect from that setting, I don’t regard this as an error.

And I don’t quite understand what you want to achieve. What you outlined above is that you want the existing pages to be editable but the user should not be allowed to add more pages. Then it makes sense to set the max number to 3, which is the existing number.

Why should there suddenly be no subpages at all?

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [January 2, 2016, 12:15pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/7 "2016-01-02T12:15:39Z")

</div>

My client of the real website wants this.

---

<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:** [January 2, 2016, 12:22pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/8 "2016-01-02T12:22:27Z")

</div>

As I said, I don’t understand the issue. Maybe you can explain this in a bit more detail. Do you mean, that when subpages are deleted, adding more pages should be disallowed, even though the maximum number is 3?

IMHO, it does not make sense to change the behavior of the max or pages settings, because they are logical. You would then probably need a new validator to check whatever it is you want to achieve.

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [January 2, 2016, 12:24pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/9 "2016-01-02T12:24:28Z")

</div>

As I said:  
I think this “not showing of existing subpages” is the **main** error, no matter what is in the blueprint.  
At the moment we cannot control that in the panel, which is the backend for all  
editors and admins, if they have no FTP access to the webserver, if the blueprint shows:

```ini
pages: false

```

---

<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:** [January 2, 2016, 12:34pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/10 "2016-01-02T12:34:05Z")

</div>

No, this is definitely not an error, it is the way the panel works and I think, it is logical. If a page is not allowed to have subpages or to only have a limited number of subpages, then there should be no pages at all or only a max number of subpages no matter if you add pages via the file system or not.

Otherwise, you would probably need another type of setting, which would allow you to hide the “add pages” button rather than trying to set this via the subpages setting.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [January 2, 2016, 2:25pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/11 "2016-01-02T14:25:00Z")

</div>

I [created a feature request issue on GitHub](https://github.com/getkirby/panel/issues/719). But as @texnixe said, this is a new feature and not a bug.

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [January 2, 2016, 3:35pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/12 "2016-01-02T15:35:26Z")

</div>

@texnixe and @lukasbestle:

thank you very much.

HeinerEF

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [February 7, 2016, 11:07am UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/13 "2016-02-07T11:07:50Z")

</div>

There has been a team discussion in the [GitHub issue](https://github.com/getkirby/panel/issues/719). Does the proposed solution solve your issue?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:00pm UTC](https://forum.getkirby.com/t/panel-existing-subpages-are-not-displayed/2945/14 "2025-02-06T17:00:15Z")

</div>


