Why can’t I see my Location fields in the +Add Field list for dynamic schema embeds?

Hi Guys,

I’ve created separate CMS collections for Countries, States, and Cities. My Jobs collection has reference fields linking to each of these.

Now I’m trying to add a JobPosting JSON-LD schema using an embed block on my Job Template Page. The problem is, I can’t see any of my location fields (country, state, or city) in the +Add Field dropdown when editing the custom code.

Is there any way to pull data from reference fields (like linked country, state, or city names) inside a custom embed for structured data?

read Only

Thanks

1 Like

Hi there!

Dynamic embeds can be used with Collection fields to include dynamic data in your JSON-LD schema. To implement this, you can use Collection field references within your custom code embed by using the standard {{ }} syntax. Here’s how it works with JSON-LD:

The Collection field values will automatically populate in your schema when the page loads, allowing you to create dynamic SEO-friendly structured data. Keep in mind that the field references must match exactly with your Collection field names, and the JSON-LD syntax needs to be properly formatted.

For more detailed information about working with Dynamic embeds, you can check out our documentation here: https://help.webflow.com/hc/en-us/articles/33961390851731

Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.

1 Like

i don’t think AI has understand….any human here??? please

1 Like

Hi Suny, it’s because they are multi-reference fields instead of single-reference fields.

Multi-reference fields require a nested collection list to unpack.

1 Like

Thanks for your time and reply….i already have added multirefence fields for city and state inside job pot cms…… what should i add furtehr in job post CMS collection? please reply in simple words

1 Like

There is no easy way to do what you’re asking.

You would use a nested collection list for each of the multi-ref fields to access those items- but you cannot construct your JSON-LD with collection lists inside.

I recommend you switch to Microdata or RDFa for this-

Intro to How Structured Data Markup Works | Google Search Central  |  Documentation  |  Google for Developers

HTML Standard

1 Like

thanks @memetican …i will try this approach..Hope this will work….. have a nice day..!!!………. :hugs::hugs::hugs:

2 Likes