Getting video embed code from Portfolio item using Layout Builder?

I’m trying to build a custom portfolio single template using Layout Builder, but I’m having problems pulling the video embed code that I’ve entered under Video Portfolio Item Settings.

I’ve created a new Single template and assigned all Portfolio items to the template:
assignment

Then added a Video element and set the embed code to: {{dc:post:meta key="_x_video_embed"}}
embed

The portfolio items are using the correct layout, but I can’t seem to get the video embed code to work using the code above. Instead I just get a grey box. Am I missing a step?

Hey @samuraicow,

Thanks for writing in!

You are using the incorrect post meta key. use this instead:
{{dc:post:meta key="_x_portfolio_embed"}}

Best Regards.

Thank you @ruenel!
For future reference, is there a page in the docs that lists all available fields we have access to? When I used the cylinder icon to open up the dynamic content browser, {{dc:post:meta key="_x_portfolio_embed"}} did not show up as an option under Post: Meta (Custom Field):

Hey @samuraicow,

We’re glad that my colleague was able to help you with your issue. We will keep in mind about the lists of available fields.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.