O'Reilly logo

Mastering TypoScript: TYPO3 Website, Template, and Extension Development by Daniel Koch

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

Extending the References Extension

In the previous chapter you have programmed extensions with which you can set up customer references and their respective sectors. But this extension has one critical deficiency—it is pretty much a flop design-wise. This section is about beautification of the output. In the simplest of cases, we could integrate the design into the PHP function. But that way we would forfeit the separation of design, function, and content. So we have to find a way to address the design templates with PHP and to integrate them into the extension that way. The foundation is this design template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> ...

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