Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display player in a Twig template? #25

Open
avxkim opened this issue Mar 28, 2018 · 2 comments
Open

How to display player in a Twig template? #25

avxkim opened this issue Mar 28, 2018 · 2 comments

Comments

@avxkim
Copy link

avxkim commented Mar 28, 2018

This plugin works with markdown, but what about Twig templates? For example, i have defined field "youtube" in a blueprints, i want to use that field's value to display a player using Twig template.

@jonata
Copy link

jonata commented Jan 12, 2022

I think you can use something like this:

{% include 'partials/youtube.html.twig' with {'video_id':'oavMtUWDBTM', 'player_parameters':config.plugins.youtube.player_parameters} %}

@elgandoz
Copy link

related to #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants