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

A options of plugin placed as Short Code in Custom HTML are ignored #2749

Closed
01Kuzma opened this issue Jan 22, 2021 · 4 comments
Closed

A options of plugin placed as Short Code in Custom HTML are ignored #2749

01Kuzma opened this issue Jan 22, 2021 · 4 comments
Milestone

Comments

@01Kuzma
Copy link

01Kuzma commented Jan 22, 2021

I've found a issue: placing a Grav Youtube Plugin into Gantry 5 Custom HTML particle.

The Short Code processing is turned on (two checkboxes).
So, the youtube frame is loaded but it's ignoring plugin's options. As for example it ignores lazy load, Modest branding...
While plugin perfectly works placed in markdown page

@01Kuzma
Copy link
Author

01Kuzma commented Jan 23, 2021

Also tested on fresh install of Grav 1.7.3, Gantry 5.4.36 and Helium 5.4.36.
Placed a short-code from grav youtube readme - [youtube color=white autoplay=1]https://www.youtube.com/watch?v=BK8guP9ov2U[/youtube] into custom html particle, lazy load enabled

@01Kuzma
Copy link
Author

01Kuzma commented Jan 24, 2021

@mahagr any thoughts regarding this?

@01Kuzma
Copy link
Author

01Kuzma commented Apr 2, 2021

In order to utilize all params plugin should be called in markdown style:
[plugin:youtube](https://www.youtube.com/watch?v=BK8guP9ov2U)
But this doesn't work in Custom HTML particle

@mahagr
Copy link
Member

mahagr commented Apr 7, 2021

Looks like there's a bug in Youtube plugin shortcode. I got the iframe working, but it won't lazy load because the plugin doesn't support it. White and autoplay options are there, but autoplay needs to be enabled from the iframe itself.

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

No branches or pull requests

2 participants