maikschneider / bw_focuspoint_images

With this TYPO3 extension you can create responsive image maps in the backend. This extension ships an image editor that can be used to add areas and information to an image.
5 stars 1 forks source link

Wizard Template is not overridable #7

Closed bebeGit closed 8 months ago

bebeGit commented 9 months ago

https://github.com/maikschneider/bw_focuspoint_images/blob/94bea048504342aba02d26e7bd9df0e39ca0d008/Classes/Form/Wizard/FocusPointWizard.php#L87-L91C40

Suggest: $configurationManager = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Configuration\ConfigurationManager::class); $pluginTS = $configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT,'bw_focuspoint_images'); $templateRootPaths = $pluginTS['plugin.']['tx_bwfocuspointimages.']['view.']['templateRootPaths.']; $partialRootPaths = $pluginTS['plugin.']['tx_bwfocuspointimages.']['view.']['partialRootPaths.']; $templateView = GeneralUtility::makeInstance(StandaloneView::class); $templateView->setLayoutRootPaths(['EXT:bw_focuspoint_images/Resources/Private/Layouts']); $templateView->setPartialRootPaths($partialRootPaths); $templateView->setTemplateRootPaths($templateRootPaths); $templateView->setTemplate('FocuspointWizard');

maikschneider commented 9 months ago

Yes, this looks good! Would you be so kind and open a PR?