Skip to content

Commit

Permalink
version 1.2.20
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Sep 26, 2020
1 parent 7993f63 commit 5a76d38
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.2.20 - 2020-09-26

### Added
- Add `fields` to share-lists controller action. Allowing additional content to be used in email notifications

## 1.2.19 - 2020-09-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "verbb/wishlist",
"description": "Allow users to create lists to store favourite entries, save products in a wishlist and more.",
"type": "craft-plugin",
"version": "1.2.19",
"version": "1.2.20",
"keywords": [
"craft",
"cms",
Expand Down
20 changes: 19 additions & 1 deletion docs/template-guides/sharing-lists.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,22 @@ Please note that the sender and recipient details are required, including a firs

If the sender is a logged in user, you can of course set these inputs to hidden, and populate with the `currentUser` content from Craft.

You can customise the content of this email via the CP - Utilities > System Messages.
```twig
<input type="text" name="sender[firstName]" value="{{ currentUser.firstName }}">
<input type="text" name="sender[lastName]" value="{{ currentUser.lastName }}">
<input type="text" name="sender[email]" value="{{ currentUser.email }}">
```

You can customise the content of this email via the control panel by going to **Utilities****System Messages**.

You can also provide any additional variables you want to access in your email templates using `fields`.

```twig
<input type="text" name="fields[personalMessage]" value="Check these out!">
```

And if your email templates, you could use:

```twig
{{ fields.personalMessage }}
```

0 comments on commit 5a76d38

Please sign in to comment.