typo3fluidemail-templatestypo3-11.x

How to debug a fluid email template?


In typo3/fluid you can use the <f:debug> viewhelper to print out some or all available template variables. On a webpage template this is printed out at the top of the screen. But how to do this inside an email template?

I would expect an output of the <f:debug>-Viewhelper at some place. Maybe inside the email or somewhere in the typo3 log files.


Solution

  • <f:debug> has handy "inline" and "plainText" attributes, so you can actually inline the output at exactly the place where the viewhelper is placed. Try that one! :)

    https://docs.typo3.org/other/typo3/view-helper-reference/main/en-us/typo3/fluid/latest/Debug.html#inline

    &

    https://docs.typo3.org/other/typo3/view-helper-reference/main/en-us/typo3/fluid/latest/Debug.html#plaintext