Skip to content

Commit 08dc555

Browse files
author
Roman Gsponer
committed
Update README
1 parent ea8c03c commit 08dc555

File tree

5 files changed

+22
-534
lines changed

5 files changed

+22
-534
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ With the integrated mailview field you can display requests allover the panel.
2222

2323
⭐️   Multiple forms allowed per page.
2424

25+
⭐️   Templating for outgoing emails.
26+
2527
⭐️   Create a new form field type with ease by added just 2 files (Blueprint & Template).
2628

2729
⭐️   Spam protection with an integrated honeypot.
@@ -503,6 +505,19 @@ Functions like _notification email_ or _confirmation email_ can be disabled:
503505

504506
The corresponding function will be no longer executed and in the panel the tab/fields won't be visible anymore.
505507

508+
## Email templating
509+
510+
Since Version 4.3.6 you can set the templates for outgoing emails like this:
511+
512+
```php
513+
'microman.formblock' => [
514+
'email_template_confirmation' => require kirby()->root('site') . '/templates/emails/confirmation.php',
515+
'email_template_notification' => `
516+
{ name } has sent you a message
517+
`
518+
],
519+
```
520+
506521
## Translations
507522

508523
Change custom texts like this:
@@ -540,9 +555,10 @@ If you disable this function, you'il lose some features
540555
- The form will not be centered after sending
541556

542557

558+
543559
## Email field
544560

545-
Since Version 4.1.0. For the confirmation or the notification email it's nessaissary to have a field, that contains the visitors email adress. You can set the email field id like this:
561+
For the confirmation or the notification email it's nessaissary to have a field, that contains the visitors email adress. You can set the email field id like this:
546562

547563
```php
548564
'microman.formblock' => [

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "microman/kirby-form-block-suite",
33
"description": "Contactform based on Kirby blocks.",
44
"type": "kirby-plugin",
5-
"version": "4.3.5",
5+
"version": "4.3.6",
66
"license": "proprietary",
77
"authors": [{
88
"name": "Roman Gsponer",

index.css

Lines changed: 1 addition & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)