Skip to content

Commit 48181e1

Browse files
committed
Document more complex example
1 parent d4863bb commit 48181e1

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docs/notification-center-pro/message-conditions/_index.de.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@ Varianten werden funktionieren. Bedingungen innerhalb des E-Mail-Textes z.B. wer
2929
{{% /notice %}}
3030

3131
{{% notice tip %}}
32-
Diese Funktion ist besonders mächtig im Zusammenspiel mit [benutzerdefinierten Tokens]({{% ref "/custom-tokens" %}})!
32+
Du kannst die gleiche Syntax verwenden, welche Contao mit "Simple Tokens" unterstützt, die intern die [Symfony
33+
Expression Language Syntax](https://symfony.com/doc/current/reference/formats/expression_language.html) nutzt.
34+
Das bedeutet, dass komplexere Kombinationen wie `(form_postal_code in 90000..919999 or form_postal_code == 9277) and form_selection == 1`
35+
kein Problem sind! Wenn deine Bedingung jedoch komplexer wird oder du sie möglicherweise in mehreren
36+
Benachrichtigungen wiederverwenden möchtest, wird diese Funktion in Kombination mit [benutzerdefinierten Tokens]({{% ref "/custom-tokens" %}}) besonders mächtig!
3337
{{% /notice %}}

docs/notification-center-pro/message-conditions/_index.en.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ variants will work. Conditions within the e-mail text, for example, are also wri
2929
{{% /notice %}}
3030

3131
{{% notice tip %}}
32-
This function is particularly powerful in combination with [custom tokens]({{% ref "/custom-tokens" %}})!
33-
{{% /notice %}}
32+
You can use whatever syntax Contao "Simple Tokens" support, which internally use the [Symfony Expression Language Syntax](https://symfony.com/doc/current/reference/formats/expression_language.html).
33+
That means, more complex combinations such as `(form_postal_code in 90000..919999 or form_postal_code == 9277) and form_selection == 1` are
34+
no problem at all! However, if your condition becomes more complex or you want to re-use it maybe in multiple notifications,
35+
this feature becomes particularly powerful in combination with [custom tokens]({{% ref "/custom-tokens" %}})!
36+
{{% /notice %}}

0 commit comments

Comments
 (0)