TYPO3 v8 has reached its end-of-life March 31st, 2020 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
You can order Extended Long Term Support (ELTS) here: TYPO3 ELTS.
A journey through the Blog Example¶
About the code of the blog example:
In this chapter we accompany you on a journey through a simple TYPO3 extension. While travelling on this round trip, you will get to know more about extension development with Extbase and Fluid and learn the most important stations and coordinates of extension development with the help of an example extension. You will first familiarize yourself with the geography and the typical characteristics of an extension and find out which processes run in the background. This knowledge will then help you in the creation of your own extension.
If you are looking for a manual specifically on creating an extension, chapter 4 will show you the right set of tools. However, we recommend to work on the fundamentals in this chapter. The journey that lies ahead of us could also have the title "Europe in five days." If you discover nice places, you should visit them later without the travel group.
You will find it beneficial to look at the original source code while reading the text, so you will have an easier time getting your bearings in your own extension later.
If you use a debugger, it can be interesting to follow a full cycle
in single step mode. For that you have to set a breakpoint in the
Dispatcher.php. You will find this class - like
every other class of Extbase - in the folder
At the end of this chapter you will find a short comparison of the traditional way to code an extension and an approach with Extbase and Fluid.
- First orientation
- The stations of the journey
- Calling the extension
- And... action!
- Get Blog from the Repository
- An excursion to the database
- Paths on the Data-Map
- Back in the controller
- Rendering the output with fluid
- Returning the result to TYPO3
- Alternative route: creating a new posting
- Automatic persistence of the domain logic
- Notes for migrating users