O'Reilly logo

TYPO3 Templates by Jeremy Greenawalt

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

Creating a printable link

A printable version of our pages doesn't do much good if nobody knows about it. Of course we know the syntax and we could spend time adding a printable link to the bottom of every page that we want it on, but that obviously doesn't make sense when we're using a powerful CMS like TYPO3. Using TypoScript, we can dynamically create a printable link at the bottom of every page that has a printable template.

Adding a printable link section to the templates

We have already added a section to map to on the printable_template.html, but we need to add a div to the main template HTML file. Go ahead and update template.html with a new div tag like this:

<!DOCTYPE HTML> <html> <head> <meta charset="utf-8" /> </head> <body> <div id="logo"></div> ...

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