eliashaeussler / typo3-form-consent

🏁 Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

Home Page:https://docs.typo3.org/p/eliashaeussler/typo3-form-consent/main/en-us/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Offer possibility to add values for additional table-fields.

DavidBruchmann opened this issue · comments

Is your feature request related to a problem?

When the consent table is saved it's currently not possible to fill additional table fields. The existing Event Handlers never offer a solution for this challenge.

Describe the solution you'd like

I'd like a configuration option to fill additional table fields (not in the data-field) per yaml configuration.

Describe alternatives you've considered

No response

Additional context

Example for using additional table fields, my desire is not only related to images but different fields too.

image

Code of Conduct

  • I agree to follow this project's Code of Conduct.

@DavidBruchmann Thanks for your issue.

The ConsentFinisher is designed to provide only two core functionalities: Persisting all form element values and sending an appropriate consent mail. It's meant to keep slim and extensible. That means, extended functionality should be added by an appropriate event listener for one of the dispatched events (see https://github.com/eliashaeussler/typo3-form-consent#events).

What you're describing seems like extended functionality to me. Therefore, it should not be part of the core implementation. However, currently it's not that easy to extend a Consent with additional data from the current FormRuntime. That's why I added the FormRuntime object to all relevant events, see

With this PR, you can now access all form element values in an appropriate event listener. I will release this soonish.

Released with 0.6.0.

Thanks a lot!