Skip to content

Commit

Permalink
Documented formoptions_* token
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed Feb 23, 2024
1 parent d9812a8 commit 7c06142
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/notification-center-pro/_index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ folgenden Funktionen:

Mit [Bedingungen für Nachrichten]({{< ref "/message-conditions" >}}) kannst du ganze Nachrichten vom Versand ausschliessen und sie so bspw. abhängig von Formularfeldern verschicken lassen.

## Weitere, mitgelieferte Simple-Tokens

Formularfelder mit Optionen, wie bspw. Dropdowns oder Checkboxen, enthalten standardmässig die Rohwerte im jeweiligen Token.
Das [`formoptions_*`- Token]({{< ref "/additional-tokens" >}}) löst dieses Problem auf die bequemste Art und Weise für dich.

## Eigene Simple Tokens

Du kannst bequem deine [eigenen, benutzerdefinierten Simple Tokens]({{< ref "/custom-tokens" >}}) auf der Grundlage anderer Token erstellen. Dies erlaubt es dir viel flexibler zu sein, indem du Informationen aus anderen Token extrahieren, sie kombinieren oder praktisch alles damit tun kannst, was du mit Twig tun kannst.
Expand Down
5 changes: 5 additions & 0 deletions docs/notification-center-pro/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ following features:

With [conditions for messages]({{< ref "/message-conditions" >}}) you can exclude entire messages from being sent and thus have them sent depending on form fields, for example.

## More form tokens

Form fields with options, such as dropdowns or checkboxes, contain the raw values in the respective tokens by default.
The [`formoptions_*`- token]({{< ref "/additional-tokens" >}}) solves this problem in the most convenient way for you.

## Custom Simple Tokens

You can conveniently create your [own, custom Simple Tokens]({{< ref "/custom-tokens" >}}) based on other tokens. This will allow you to be a
Expand Down
46 changes: 46 additions & 0 deletions docs/notification-center-pro/additional-tokens/_index.de.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
title: "Weitere Simple-Tokens"
url: "weitere-simple-tokens"
weight: 150
---

Das Notification Center Pro liefert weitere Simple-Tokens mit, die bequeme Lösungen für typische Probleme bieten.

## Das `formoptions_*` Token

Stell dir vor, du hast ein Formularfeld namens `sport` mit einer Mehrfachauswahl. Beispielsweise ein Dropdown mit folgender Einstellung:

| Wert | Bezeichnung |
|------|-------------|
| fb | Fussball |
| tt | Tischtennis |
| bb | Basketball |

Standardmässig steht dir ein Token namens `form_sport` zur Verfügung. Wenn die Besucherin oder der Besucher nun alle drei Optionen auswählt, würde dieses Token `fb, tt, bb` enthalten. Das heisst aus

```text
Gewählte Sportart(en): ##form_sport##
```

würde

```text
Gewählte Sportart(en): fb, tt, bb
```

generiert werden.

Mit dem Notification Center Pro kannst du einfach, `form_sport` durch `formoptions_sport` ersetzen. Aus

```text
Gewählte Sportart(en): ##formoptions_sport##
```

wird dann

```text
Gewählte Sportart(en): Fussball, Tischtennis, Basketball
```

So einfach kann es sein! 🎉

43 changes: 43 additions & 0 deletions docs/notification-center-pro/additional-tokens/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: "More Simple Tokens"
weight: 150
---

The Notification Center Pro provides additional Simple Tokens that offer convenient solutions for typical problems.

## The `formoptions_*` token

Imagine you have a form field called `sport` with multiple options. For example, a dropdown with the following setting:

| value | name |
|-------|--------------|
| fb | football |
| tt | table tennis |
| bb | basketball |

By default, a token called `form_sport` is available. If the visitor now selects all three options, this token would contain `fb, tt, bb`. This means that this:

```text
Selected sports: ##form_sport##
```

would end up in this:

```text
Selected sports: fb, tt, bb
```

With the Notification Center Pro, you can simply replace `form_sport` by `formoptions_sport`. Then, your

```text
Selected sports: ##formoptions_sport##
```

will result in

```text
Selected sports: football, table tennis, basketball
```

It's that simple! 🎉

0 comments on commit 7c06142

Please sign in to comment.