Disallow creation of new pages on site / first page of panel …

Dear everyone,

think I’m overseeing some pretty obvious answer to this question …

I’d like to disallow the creation of new pages on the first site of panel, so panel/site.

How would I achieve that?

Thank you!

Let’s say you have a Pages section with 4 pages. To prevent adding any more, set:

  type: pages
  max: 4

I thought I could add pages: false to site/blueprints/site.yml, but this doesn’t work …

EDIT: Drafts shows up, empty, with a + button to add new drafts.

I asked myself the same question and ended up with:

title: Site
preset: pages
unlisted: true
drafts: false

In the blueprints/site.yml This way the add button disappears. But I guess it’s more of a hack.

You can limit the status of page sections to listed and unlisted. If there is not section that allows drafts, there will be no add button.

    headline: All my pages
    type: pages
    status: published
1 Like