Is it possible to prevent client, in the Panel, from reordering, renaming, duplicating or changing the status of pages?
In the Panel, on the Site page, I just want a list of the listed pages. That is locked down and can’t be messed with.
In my Site Blueprint I have a Pages Section with sortable: false. This prevents client from dragging and dropping the pages into a different order. But does not prevent client from clicking green circle and selecting a position.
Or what is a “custom section” and how do I create one? I can’t find any mention of a custom section on the Kirby website. I presume this is custom section on a Blueprint file, that would simply allow me to list the main pages of the website without allowing the client to change anything?
Well, you can use these options on the level of the page blueprint, not inside a section. But then this will apply to any section with these pages, not only this one section. Same if you use permissions, you cannot just apply them to a single section.
Sounds promising. So can I use these options on my Site Blueprint to stop client from messing things up? On the whole Site Panel page, not just a section of the site Panel? Or if I apply this to the Site page blueprint will it apply to all pages of the website?
Okay, I think I’m going to give up and hope the client doesn’t get click happy!
Any idea why I can’t get some text fields to display in the Panel under the listed pages? Here’s my Site Blueprint code.:
title: Site
sections:
listed:
type: pages
status: listed
image: icon
fields:
first-term:
label: First term dates
type: text
second-term:
label: Second term dates
type: text
third-term:
label: Third term dates
type: text
title: Site
sections:
listed:
type: pages
status: listed
image: icon
sections:
content:
type: fields
fields:
first term:
label: First term dates
type: text
second term:
label: Second term dates
type: text
third term:
label: Third term dates
type: text
If I remove either section it works, but I can’t seem to have two sections:
title: Site
sections:
listed:
type: pages
status: listed
image: icon
sections:
content:
type: fields
fields:
firstterm:
label: First term dates
type: text
secondterm:
label: Second term dates
type: text
thirdterm:
label: Third term dates
type: text
This doesn’t work either
title: Site
sections:
content:
type: pages
status: listed
image: icon
sections:
content:
type: fields
fields:
firstterm:
label: First term dates
type: text
secondterm:
label: Second term dates
type: text
thirdterm:
label: Third term dates
type: text
I don’t think I need sections for such a simple Blueprint, but I can’t get it to work:
title: Site
listed:
type: pages
status: listed
image: icon
label: Main pages
fields:
firstterm:
label: First term dates
type: text
secondterm:
label: Second term dates
type: text
thirdterm:
label: Third term dates
type: text