Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
sobrenome Posted May 6, 2019 Posted May 6, 2019 I am currently parsing YouTube video in Pages using this code: {$record->customFieldDisplayByKey('video_exercicios_youtube')|raw} The database record contains only the YouTube URL, without any parameters. I would like to add these parameters to my videos by editing the Page template, not all the URLs: autoplay=1&playsinline=1 How can I append these parameters to the YouTube URLs editing the Page template?
bfarber Posted May 6, 2019 Posted May 6, 2019 \IPS\Theme::i()->getTemplate( 'records', 'cms', 'global' )->youtube( $url, array( 'width' => $params['width'], 'height' => $params['height'] ) ); Template is in the theme system Pages > global > records > "youtube"
sobrenome Posted May 7, 2019 Author Posted May 7, 2019 Hello, I have added in the AdminCP, YouTube field parameters, but did not work: Will I have to edit the theme template also to include the YouTube parameters?
sobrenome Posted May 7, 2019 Author Posted May 7, 2019 I guess it's a YouTube issue: https://stackoverflow.com/questions/40685142/youtube-autoplay-not-working
Recommended Posts
Archived
This topic is now archived and is closed to further replies.