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.
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.
1. Edit the Template record.
2. Add the following lines to the
setupfield (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 page.10.marks.VIDEO.renderType = qt