FlexFormParsingModifyEventListener
This class registers event listeners to dynamically configure and modify FlexForm data structures for the TYPO3 extension dailyverses.
Namespace: Theolangstraat\Dailyverses\Configuration\EventListener
Event Listeners
Event Identifier |
Method |
|---|---|
|
|
|
|
|
|
|
|
|
|
Methods
setDataStructure
Triggered before the FlexForm data structure is parsed.
Checks if the
dataStructureKeycontainsdailyverses_dailyverses.Retrieves the site identifier using
SiteFinderbased on the storedpageId.Assigns a site-specific XML file as the FlexForm structure:
FILE:EXT:dailyverses/Configuration/FlexForms/{siteIdentifier}.xml.
modifyDataStructure
Triggered after the FlexForm data structure is parsed.
Currently unused.
Can be extended to dynamically modify FlexForm sheet titles or fields.
setDataStructureIdentifier
Triggered before the FlexForm identifier is initialized.
Determines the correct
pidfrom the content element row.If
pidis negative (temporary UID), queries thett_contenttable to resolve the actualpid.Stores
pageId,languageUid, andcontentTypeinFlexFormContextStoragefor later use.
modifyDataStructureIdentifier
Triggered after the FlexForm identifier is initialized.
Currently unused.
setFlexForms
Triggered during package initialization.
Checks if the extension key is
dailyverses.Uses the
GenerateFlexFormservice to create XML FlexForm files for each site.Iterates over all sites and generates FlexForms based on their language configuration.
Dependencies
TYPO3\CMS\Core\Site\SiteFinderTYPO3\CMS\Core\Database\ConnectionPoolTheolangstraat\Dailyverses\Configuration\EventListener\FlexFormContextStorageTheolangstraat\Dailyverses\Configuration\EventListener\GenerateFlexForm
Usage
This class enables dynamic assignment of FlexForm configurations for content elements of type dailyverses_dailyverses. It ensures that each site can have its own tailored FlexForm structure.
Note
Make sure the XML files exist in EXT:dailyverses/Configuration/FlexForms/. If not, they will be generated during package initialization.