Building a TYPO3 extension in Extbase/Fluid
Add properties to your domain model
In order to add properties (database fields) to your domain model you’ll need to change certain files. Use existing properties as an example. The purpose of this list is that of a checklist rather than a detailed instruction.
Change the following files (file paths are relative to the root of your extension /typo3conf/ext/your_extension/):
- /Classes/Domain/Model/YourModel.php: protected var
- /Configuration/TCA/YourModel.php: arrays
- /Resources/Private/Language/locallang.xlf and locallang_db.xlf
And don’t forget to add the field to the database.