I’m pulling data from two structure fields (videos and products) and have merged it into an episodes structure field per Fetch query from parent page
Here’s the episodes blueprint:
fields:
gkm_episodes:
label: Current Episodes
type: structure
style: table
modalsize: large
fields:
name:
label: Episode Title
type: text
episode:
label: Associated Video
type: episodes
product:
label: Associated Product
type: products
airdate:
label: Air Date
type: date
format: MM/DD/YYYY
For each of the episodes, I’m trying to find the associated video and products. I tried something like this, but it isn’t filtering through the products structure to match the episode product with the product title.
Sorry – maybe this will help. Here’s the products blueprint.
title: Products
icon: cube
fields:
gkm_products:
label: Products
type: structure
entry: >
<strong>{{name}}</strong>
modalsize: large
fields:
name:
label: Product Title
type: text
cover:
label: Product Image
type: image
width: 1/2
link:
label: Store Link
type: url
width: 1/2
description:
label: Product Description
type: textarea
contents:
label: Product Contents
type: textarea
So for each of the episodes, I’ve designated a specific product. What I’m trying to do is filter through the gkm_products structure, finding the matching product, and then have access to the rest of the collection for that product:
$product->name(); $product->cover();
I have previously accomplished this by matching the page uid like so: