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

Adding a basic language menu

Now that we have some pages translated we need to make it easier to access. The only way to see the localized pages right now is by adding&L=1 or&L=2 to the address of any page, and that's not going to work for our visitors. We need to create a basic language menu for them. Adding the language menu is like adding a link to a printable version of our pages. We just need to provide a link to the localized version of the page instead. We're going to go through the same steps of adding a spot to the template in HTML and TemplaVoila, and then we can assign the languages to it through TypoScript.

  1. Our first step is to add a container for the new menu to our HTML templates. Go ahead and open template.html and template_sidebar.html ...

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