maikschneider / bw_captcha

TYPO3 extension that adds a captcha element with audio support for the TYPO3 form component. The captcha generation uses Gregwar/Captcha, no Google or 3rd party includes.
6 stars 6 forks source link

BUG:Overriding Partial does not work with 1680889288 #34

Open powermix opened 1 year ago

powermix commented 1 year ago

i spent time till i did figure it out i can't use timestamp 1680889288 have to use 1623227656 instead .

akroii commented 1 year ago

Do you mean your FormSetup.yaml which leads to a blank UnknownElement.html? in fluid debug view?

Like that:

            Form:
              renderingOptions:
                templateRootPaths:
                  70: 'EXT:xxx/Resources/Private/Extensions/Form/Templates/'
                partialRootPaths:
                  1680889288: 'EXT:xxx/Resources/Private/Extensions/Form/Partials/'
mgerdes-atl commented 1 year ago

Hi @akroii , just came accross this issue while implementing a custom template for the captcha field.

Problem I see: in the extension the partial path is set via 1623227656 overlaying with 1680889288 does not work. The configuration in backend seems to show everything correct. But the template in bw_captch is rendered instead of the one in atl_provider bw_captcha

If I change the module.tx_form.settings.yamlConfigurations.###ID### to a higher value then 1623227656 it is working as excpected...

No clue what this is.

I'm on TYPO3 11.5.30 right now.

I solved the issue by including a seperate yml file with the following content

  CMS:
    Form:
      prototypes:
        standard:
          formElementsDefinition:
            Form:
              renderingOptions:
                partialRootPaths:
                  1623227656: 'EXT:atl_provider/Resources/Private/Fluid/Extensions/Form/Partials/'

with a higher index 1623227657 to override your yaml configuration.

Regards Markus