---
title: "Developer Corner"
version: "main"
permalink: "https://docs.typo3.org/permalink/oktopuce/site-generator:developer@main"
source: "Developer/Index.rst"
rendered: "2026-12-04T11:37:20+00:00"
---

# Developer Corner {#developer}

Target group: **Developers**

The **site_generator** extension is highly customizable, this chapter describes the basics of the extension and explain how to extend it in order to fit your own needs :

-   add customs states
-   add specific data to forms
-   change wizard steps

The site_generator wizard is based on State Design Pattern :

```plantuml
class SiteGeneratorDto {
}

class StateBase {
}

class SiteGeneratorWizard {
   # setNextWizardState()
   __ protected data __
   #StateBase currentState
   #BaseDto siteData
}

class StateCopyModelSite {
   + process($context:SiteGeneratorWizard)
}

class StateCreateFileMount {
   + process($context:SiteGeneratorWizard)
}

class StateCreateFolder {
   + process($context:SiteGeneratorWizard)
}

class StateCreateFeGroup {
   + process($context:SiteGeneratorWizard)
}

SiteGeneratorDto --* SiteGeneratorWizard
SiteGeneratorWizard o-- StateBase : currentState
StateBase <|- StateCreateFeGroup
StateBase <|-- StateCreateFolder
StateBase <|-- StateCreateFileMount
StateCopyModelSite -|> StateBase

note left of SiteGeneratorWizard::currentState
   States comes from TypoScript Setup
end note

class SiteGeneratorDto
note right: Data Transfer Object From forms wizard
```

The wizard get states from **TypoScript Setup** and form data through **SiteGeneraorDto**.

For full customization, I suggest to create your own extension, this is how it is suppose to be in following section, the tree structure looks like this :

```none
.
├── Classes
│   ├── Dto
│   │   └── SiteGeneratorDto.php
│   ├── EventListener
│   │   ├── VariablesForFirstView.php
│   │   └── VariablesForSecondView.php
│   └── Wizard
│       └── StateCreateFeGroup.php
├── Configuration
│   └── Services.yml
├── composer.json
├── ext_emconf.php
├── ext_localconf.php
├── ext_typoscript_constants.typoscript
├── ext_typoscript_setup.typoscript
└── Resources
    └── Private
        └── Partials
             ├── FirstStepForm.html
             └── SecondStepForm.html
```

## File details {#file-details}

-   [TypoScript](https://docs.typo3.org/permalink/oktopuce/site-generator:typoscript-1@main)
-   [Data Transfer Object](https://docs.typo3.org/permalink/oktopuce/site-generator:data-transfer-object@main)
-   [Event listener (PSR-14 Events)](https://docs.typo3.org/permalink/oktopuce/site-generator:event-listener-psr-14-events@main)
-   [Templates](https://docs.typo3.org/permalink/oktopuce/site-generator:templates-1@main)
-   [Wizard](https://docs.typo3.org/permalink/oktopuce/site-generator:wizard-1@main)
