I've got a parent grid, with two child grids. Child grid named
services_list_sub_grid_2 should display
mode: table but that's not working as expected. That sub grid continues to display as
stacked in the admin.
The parent grid is
mode: table. It does display as expected.
What I'm working on:
Essentially, we're creating a list of featured CTAs.
list field type to let content editors create a list of 7 items. Then the
pages field type to choose 7 pages to link to. I'd like these two fields to be side-by-side in table mode to give the editor the idea these fields are a 1:1 relationship - the grid's displaying stacked currently.
In the template, I'll build the link, using the
list field's value as the link label, and the
pages value as the link
I just realized using a list field type here doesn't really work with what I want; it'd be better using a
text field. Though doesn't fix issue with display mode.
Field set code:
featured_about_us_services_grid: type: grid mode: table display: "Featured About Us Services" instructions: "A repeatable grid of items" starting_rows: 1 min_rows: 1 max_rows: 1 fields: services_list_sub_grid_1: type: grid mode: stacked display: "Featured Services Image" instructions: "" starting_rows: 1 min_rows: 1 max_rows: 1 fields: item_upload: display: "Image Upload" instructions: "Minimum image size: 590px wide by 394px tall." type: assets container: main max_files: 1 folder: featured restrict: true allowed: [png, PNG, gif, GIF, jpg, JPG, jpeg, JPEG, webp, WEBP, WebP, webP] resize: width: 590 height: 394 quality: 90 upsize: true width: 100% item_label: display: "Item: Image Caption" instructions: "" type: text required: true width: 100% item_snippet: display: "Item: Services Snippet" instructions: "" type: redactor restrict_assets: true required: false width: 25% services_list_sub_grid_2: type: grid mode: table display: "Featured Services List" instructions: "" starting_rows: 1 min_rows: 1 max_rows: 7 fields: item_list: type: list display: "Item: Services List" instructions: "(Custom Titles here)" required: true width: 50% item_pages: type: pages display: "Links to Services Pages" instructions: "(Pages field type)" required: true width: 50%