sobrenome Posted May 6, 2019 Share 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? Link to comment Share on other sites More sharing options...
bfarber Posted May 6, 2019 Share 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" Link to comment Share on other sites More sharing options...
sobrenome Posted May 7, 2019 Author Share 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? Link to comment Share on other sites More sharing options...
sobrenome Posted May 7, 2019 Author Share Posted May 7, 2019 I guess it's a YouTube issue: https://stackoverflow.com/questions/40685142/youtube-autoplay-not-working Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.