I’m trying to work out a way for new project subpages to be added in the panel and displayed on the home page. I am trying to assign each new project subpage the project.php template - Currently I can only choose projects from the contents/home/ folder that I have manually created
What I’m confused about is that I’m recycling code from another project I did and getting different results. How can I add a subpage, choose a title and template?
Yes, you can use sections within tabs but not mixed with fields (or not directly but via sections), like this:
title: Home
icon: 🏠
options:
changeStatus: false
changeTemplate: false
tabs:
content:
label: Content
icon: text
sections:
fields: # a fields section with any number of fields
type: fields
fields:
// fields here
pages: # this is now a section
type: pages
headline: My beautiful pages section
You can further elaborate on the layout by using columns inside your tabs, of course, an put the pages section into one column and the fields section into another.