Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
akiessling committed Apr 29, 2024
1 parent 5e97495 commit 4fcfbb5
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```
Expand All @@ -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!

0 comments on commit 4fcfbb5

Please sign in to comment.