From e8ee64fdf0d8998b1f87e51cbc0b3300ecdfb10a Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Thu, 22 Feb 2024 14:09:47 +0100 Subject: [PATCH] Documented dump() restriction --- .../custom-tokens/testing/_index.de.md | 4 ++++ .../custom-tokens/testing/_index.en.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/docs/notification-center-pro/custom-tokens/testing/_index.de.md b/docs/notification-center-pro/custom-tokens/testing/_index.de.md index 8358556..065615c 100644 --- a/docs/notification-center-pro/custom-tokens/testing/_index.de.md +++ b/docs/notification-center-pro/custom-tokens/testing/_index.de.md @@ -28,6 +28,10 @@ Verwende das vom Notification Center Pro bereitgestellte `Void Gateway`, um eine ## Debugging +{{% notice warning %}} +Nachfolgende Beschreibung funktioniert nur, wenn du dich im **Debug-Modus von Contao** befindest! +{{% /notice %}} + Verwende `{{ dump() }}` in deinem Twig-Template. Du kannst dann sowohl die `parsedTokens` als auch die `rawTokens` bequem betrachten: diff --git a/docs/notification-center-pro/custom-tokens/testing/_index.en.md b/docs/notification-center-pro/custom-tokens/testing/_index.en.md index 949dcb3..b904e2e 100644 --- a/docs/notification-center-pro/custom-tokens/testing/_index.en.md +++ b/docs/notification-center-pro/custom-tokens/testing/_index.en.md @@ -32,7 +32,12 @@ to very easily generate a few test cases based on which you can then create and ## Debugging +{{% notice warning %}} +The following manual only works if you are in **Contao debug mode**! +{{% /notice %}} + Use `{{ dump() }}` as your Twig template. You will then be able to easily inspect both, the `parsedTokens` as well as the `rawTokens`: ![Screenshot of the dump output]({{% asset "/notification-center-pro/images/screenshot_dump.png" %}}?classes=shadow) +