Book Image

TYPO3 4.3 Multimedia Cookbook

By : Dan Osipov, Adrian Zimmerman
Book Image

TYPO3 4.3 Multimedia Cookbook

By: Dan Osipov, Adrian Zimmerman

Overview of this book

TYPO3 is one of the world's leading open source content management systems, written in PHP, which can be used to create and customize your web site. Along with text content, you can display high quality images, audio, and video to your site's visitors by using TYPO3. It is essential to manage various types of multimedia files in content management systems for both editors and the users on the frontend of the site.The book gives you a step-by-step process for organizing an effective multimedia system. It also gives solutions to commonly encountered problems, and offers a variety of tools for dealing with multimedia content. The author's experience in large-scale systems enables him to share his effective solutions to these problems.If you choose to work through all the recipes from the beginning, you will start by setting up a basic web site set up, aimed at future expansion and scalability. Next, you will cover the basics of digital asset management—a major topic important in all enterprises. You can organize user groups because next you will be creating accounts for users and assigning permissions. Then you will jump into metadata—text information describing the multimedia objects—and learn how it can be manipulated in TYPO3. You will embed multimedia on your site when you have read the various methods for embedding mentioned in this book. Before you finish the book you will learn about some advanced topics, such as external API integrations and process automation.
Table of Contents (13 chapters)
TYPO3 4.3 Multimedia Cookbook
About the Author
About the Reviewers

Rendering images using TypoScript

All the content objects available can be created using TypoScript. We will look at the IMAGE content object. Despite its simplicity, there are various situations, in which it is useful. For example, you might need to render an image on several pages, but don't want to include it in the template because it is dynamic. Using TypoScript, you can use conditionals to control which image is rendered, wrap the image in a link, and more. Here, we will first create a simple image, and then see what other options can be given.

How to do it...

  1. 1. Modify the template on any page.

  2. 2. Add the following code to the setup field, substituting page.12 with the path to the object or marker where you want the image to appear:

    page.12 = IMAGE page.12 { file = fileadmin/image.jpg
  3. 3. Save, clear cache (if necessary), and preview the page.

How it works...

Content objects take certain parameters as an input, and provide HTML as output. In this case, the input is just a path to a file...