Hello,
I tried to give my editor role permissions to create pages in a pages section only in a specific page template.
I need this to give my client the ability to create job posting on the jobs page while preventing him to create any other pages in the kirby project.
First, I tried to disable it generally:
editor.yml
title: Editor
description: Content management
permissions:
pages:
create: false
then, allow it in the specific pages section in the job postings page template:
job-postings.yml
title: Job Postings Page
sections:
myFields:
type: fields
fields:
jobsHeadline:
label: Jobs
type: headline
numbered: false
jobPages:
type: pages
create:
editor: true # <-------
label: " "
layout: cardlets
template: subpage
I also tried to allow it in the subpage template instead:
subpage.yml
title: Sub Page
options:
changeTitle:
editor: true
create:
editor: true # <-------
But nothing changes, the permissions are always overwritten by my user blueprint editor.yml
What am I doing wrong, if this even possible?
Thanks!