Jump to content

Pages: how to add youtube video parameters in template


sobrenome

Recommended Posts

Posted

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?

Posted
\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"

Posted

Hello, I have added in the AdminCP, YouTube field parameters, but did not work:4E0E5E4D-7422-45C8-9E5A-790EFA02D8C4.thumb.png.bc6e53b1ced8563cc1e3659b70ced699.png

Will I have to edit the theme template also to include the YouTube parameters?

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...