Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 6, 20196 yr 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?
May 6, 20196 yr \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"
May 7, 20196 yr Author 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?
May 7, 20196 yr Author I guess it's a YouTube issue: https://stackoverflow.com/questions/40685142/youtube-autoplay-not-working
Archived
This topic is now archived and is closed to further replies.