TypoScript

Configure you extension in order to use your own forms and customize the wizard states.

ext_typoscript_constants.typoscript

module.tx_sitegenerator {
    view {
        templateRootPath = EXT:site_generator_customized/Resources/Private/Templates/
        partialRootPath = EXT:site_generator_customized/Resources/Private/Partials/
        layoutRootPath = EXT:site_generator_customized/Resources/Private/Layouts/
    }
    settings {
        siteGenerator {
            wizard {
                // Custom form DTO
                formDto = Oktopuce\SiteGeneratorCustomized\Dto\SiteGeneratorDto
                // Pid for FE group creation
                pidFeGroup = 20
                // Base FE group UID
                baseFeGroupUid = 6
            }
        }
    }
}

Important

Most important thing here is the use of a specific DTO that will be used with our custom forms

formDto = Oktopuce\SiteGeneratorCustomized\Dto\SiteGeneratorDto

ext_typoscript_setup.typoscript

# Clear all default states and set new Wizard steps
module.tx_sitegenerator.settings.siteGenerator.wizard.steps >
module.tx_sitegenerator {
    settings {
        siteGenerator {
            wizard {
                steps {
                    10 = Oktopuce\SiteGenerator\Wizard\StateCopyModelSite
                    20 = Oktopuce\SiteGeneratorCustomized\Wizard\StateCreateFeGroup
                    30 = Oktopuce\SiteGenerator\Wizard\StateUpdateHomePage
                    40 = Oktopuce\SiteGenerator\Wizard\StateUpdateTemplateHP
                    50 = Oktopuce\SiteGenerator\Wizard\StateUpdatePageTs
                    60 = Oktopuce\SiteGenerator\Wizard\StateUpdateSlugs
                }
                baseFeGroupUid = {$module.tx_sitegenerator.settings.siteGenerator.wizard.baseFeGroupUid}
            }
        }
    }
}
20 = Oktopuce\SiteGeneratorCustomized\Wizard\StateCreateFeGroup

Important

Reset all default wizard states, reuse existing states and add your customized state