From 4fcfbb547a5e4863f326ef9bf8ca79e2d5606d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kie=C3=9Fling?= Date: Mon, 29 Apr 2024 16:24:18 +0200 Subject: [PATCH] update readme --- README.md | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index a0549a3..5bb8127 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,9 @@ -# Form Dynamic Recipient for EXT:form / TYPO3 10.4 - 11.5 +# Form Dynamic Recipient for EXT:form / TYPO3 12.4 This extension adds simple database records, that can be used to generate a select field in the frontend. The selected option can be accessed with an assigned alias and thus be used as a dynamic recipient, e.g. in the _Recipient address_ field. -## Installation -Clone to typo3conf/ext/form_dynamic_recipient -``` -git clone https://github.com/extrameile/form_dynamic_recipient.git -``` - -or install via composer +## Installation via composer ``` composer require extrameile/form-dynamic-recipient ``` @@ -18,29 +12,18 @@ composer require extrameile/form-dynamic-recipient * Create database records with a label and target email address * add a select field of type _Selectable recipient_ to the form, configure the page to load the values from and the variable to fill with the selected value, e.g. `dynamicRecipient` +* New with version 3.x: leave the page field empty in the form yaml to load the recipients from the page with the form plugin * Configure the _Email to receiver_ finisher with `{dynamicRecipient.email}` and `{dynamicRecipient.label}` - set the form field to required, if you use {dynamicRecipient.email} as the target email address. # Running phpstan -## 10.4 -``` -composer update --prefer-lowest -W -composer run phpstan -``` - -## 11.5 ``` -composer update -W -composer run phpstan +.Build/bin/phpstan analyse --memory-limit=1G -l6 . ``` -## ToDos - -* validate submitted option to contain a uid from the records of the configured storage page - - -## Resources +# Resources * https://daniel-siepmann.de/Posts/2017/2017-09-07-typo3-form-select-with-db-values.html * https://github.com/tritum/form_element_linked_checkbox - +# Contributors +Thanks to Thomas Löffler (spoonerWeb) and Hawkeye1909 for your contributions!