Skip to content

Commit 7133b49

Browse files
in-sessionlinawolf
andauthored
Add missing example for minimum viable FluidMail Template (#5208)
* Missing Example for Template * Move anchor above its headline * Use directory tree and insert a headline for the example --------- Co-authored-by: Lina Wolf <[email protected]>
1 parent 84da83c commit 7133b49

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

Documentation/ApiOverview/Mail/Index.rst

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,47 @@ If you want to provide custom templates or layouts, set this in your
7070
:caption: config/system/additional.php | typo3conf/system/additional.php
7171
7272
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['templateRootPaths'][700]
73-
= 'EXT:my_site_extension/Resources/Private/Templates/Email';
73+
= 'EXT:my_site_package/Resources/Private/Templates/Email';
7474
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['layoutRootPaths'][700]
7575
= 'EXT:my_site_extension/Resources/Private/Layouts';
7676
77+
.. _mail-configuration-fluid-example:
78+
79+
Minimal example for a Fluid-based email template
80+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81+
82+
**Directory Structure:**
83+
84+
.. directory-tree::
85+
:show-file-icons: true
86+
87+
* EXT:my_site_package/
88+
89+
* Resources
90+
91+
* Private
92+
93+
* Templates
94+
95+
* Email
96+
97+
* MyCustomEmail.html
98+
99+
**`MyCustomEmail.html`:**
100+
101+
.. code-block:: html
102+
:caption: EXT:my_site_package/Resources/Private/Templates/Email/MyCustomEmail.html
103+
104+
<f:layout name="SystemEmail" />
105+
106+
<f:section name="Subject">
107+
My Custom Subject
108+
</f:section>
109+
110+
<f:section name="Main">
111+
Hello, this is a custom email template!
112+
</f:section>
113+
77114
.. _mail-configuration-transport:
78115

79116
transport

0 commit comments

Comments
 (0)