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

#1

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!

0 Likes

#2

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

mypages:
  type: pages
  max: 4
0 Likes

#3

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.

0 Likes

#4

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.

0 Likes

#5

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.

sections:
  allPages:
    headline: All my pages
    type: pages
    status: published
0 Likes