I am trying to link to a subpage for each section created within a structure so that from the backend you can add a new project that links to the project.php subpage
Inside the page field I am using page-builder but the issue I’m having is that it doesn’t allow different content within the page builder blocks, if I change text in project 1 it changes it in project 2 as well
Could you please share the blueprint for the project page?
What I don’t understand is why on the one hand you have this structure field which store content for the project pages and then on the other the pages themselves that again seem to have this information (like the title). Somehow that looks as if you are duplicating content for no obvious reason, but maybe I’m missing something here?
What is the purpose of the structure field? If the purpose is to select some pages to feature them somewhere, it would be sufficient to only select the pages in the pages field and get the rest of the information from each project itself?
What I’m trying to do with the structure field is to create a list of projects on the home page and each project links to that projects corresponding subpage containing further information about the project - This is so the user can add a project and subpage + it’s contents inside the structure field
I hope that makes sense, really appreciate your help
See project page blueprint below
title: Project
fields:
builder:
type: builder
label: Page Builder
fieldsets:
mediablock:
label: Media Block
fields:
media:
type: files
label: Image or Video Embed
width: 1/1
textblock:
label: Text Block
fields:
text:
type: text
label: Text Body
width: 1/1
Hm, I don’t really understand why this additional information is not stored in the project page itself unless you really want to change title, keys and image especially for display on the homepage. Otherwise this information belongs in the project page itself.
As regards the builder, at first sight I can’t see anything wrong with the field definition, but I don’t really understand what the issue is. currently I see one project page in your screenshot with a text body and the entry Project 2. So if you create a second project page with a different title, then the content between these two projects is always the same in the Panel?
Also, I assume that this second issue is totally unrelated to the first?