O'Reilly logo

TYPO3 4.3 Multimedia Cookbook by Dan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Rendering audio and video using media TypoScript object

Let's now use TypoScript to perform the actions outlined in the recipe Rendering video using media content object. This is useful in cases when you want to include an object on several pages, and still be administrated in one place, or if the position in the template is strange, and content editors are unable to get to it using the Page module.

Getting ready

We will assume that you have the template for the site set up, and you have a marker in the template that you want to replace.

How to do it...

  1. Edit the Template record.
  2. Add the following lines to the setup field (modifying the path to the marker and path to the file):
     page.10.marks.VIDEO < tt_content.media.20 page.10.marks.VIDEO.file = fileadmin/movie.mpg ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required