Fluid templating engine
The TYPO3Buddy Fluid website is a tutorial to rebuild the TYPO3Buddy Fluid website. TYPO3Buddy is built with the TYPO3 CMS and the Fluid content and templating suite and this chapter is a TYPO3 Fluid tutorial. Fluid is part of the TYPO3 CMS as of version 4.7 by default.
Please note: this tutorial uses old conventions and places the template files and folders into the fileadmin folder. This has the advantage that you can update the files in your CMS. The downside is that all recent TYPO3 documentation refers to template files in an extension. You can use the master template extension to get started. Read the sitepackage tutorial to get up to speed.
Basic requirements and recommendations
Minimal requirement to proceed with Fluid is that you have installed TYPO3 and you are able to log in to the backend. You have set up the basics of your TYPO3 website: you need to have a file folder structure, a basic page structure and a working typoscript template in the root page. You'll also use a special page called the Storage folder, where the "Backend layouts" will be stored. All these things are described in the previous chapter.
When you're ready to go...
Next, the following will be documented:
- Your HTML template and its corresponding CSS file
- Introduction to Fluid's templates, layouts and partials
- Create a Fluid content template file
- Create a backend layout
- Update the typoscript "Main template" to use Fluid templating
- Add content to the Home page
- Create a Fluid website layout file
- Create Fluid website partial files
- Link the existing Fluid content template to the Fluid layout
- Update the typoscript "Main template" to use the Fluid layout
These are the steps to create a website with just one content template. If you want to use multiple content templates, continue with the following steps:
- Create additional Fluid content template files
- Create additional backend layouts
- Update the typoscript "Main template" to use the Fluid content templates
- Assign the new backend layouts to pages
- Add content to the pages
The TYPO3Buddy Fluid tutorial could not have been made without this excellent article written by Thomas Deuling, as well as another fine article written by Jhay Rollz (which is no longer online) and of course the official Fluid reference.