b13/twoclickmedia

Enable external youtube and vimeo videos only on click for TYPO3

Installs: 16 876

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 7

Forks: 5

Open Issues: 2

Type:typo3-cms-extension

1.0.8 2023-11-03 08:39 UTC

This package is auto-updated.

Last update: 2024-10-26 11:58:20 UTC


README

This extension replaces TYPO3's default YouTube/VimeoRenderer with a two click solution, showing a preview/teaser first and adding the iFrame connecting to YouTube or Vimeo once a user clicks on the preview image. It does not set or read any cookies and does not save a user's default state (there is no "show me all YouTube videos on this site" setting).

This extension comes with a default template for the preview image as well as a default JS to insert the iFrame normally used for displaying YouTube or Vimeo content.

Installation

Install this extension via composer req b13/twoclickmedia or download it from the TYPO3 Extension Repository and activate the extension in the Extension Manager of your TYPO3 installation.

Include this extensions' TypoScript settings by adding the default settings to your TypoScript setup:

@import 'EXT:twoclickmedia/Configuration/TypoScript/setup.typoscript'

Template

If you need to change the default template provided by this extension, add your own Fluid paths to the configuration:

plugin.tx_twoclickmedia {
    view.layoutRootPaths.100 = EXT:my_extension/Resources/Private/Plugins/Twocklickmedia/Layouts/
    view.templateRootPaths.100 = EXT:my_extension/Resources/Private/Plugins/Twocklickmedia/Templates/
    view.partialRootPaths.100 = EXT:my_extension/Resources/Private/Plugins/Twocklickmedia/Partials/
}

Credits

This extension was created by Daniel Gorges in 2021 for b13 GmbH, Stuttgart.

Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.