Complete the documentation for the use case of a resource from an email template. (#25705)

Signed-off-by: Kevin MARTINS <k.martins@ubitransport.com>
This commit is contained in:
Kévin Martins 2024-01-10 22:08:04 +01:00 committed by GitHub
parent d36913a240
commit 16dddfa49c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -238,7 +238,20 @@ Or to use directly in HTML templates add the following to a custom HTML template
[source,html] [source,html]
---- ----
<img src="${url.resourcesPath}/img/image.jpg"> <img src="${url.resourcesPath}/img/image.jpg" alt="My image description">
----
==== Adding an image to a email theme
To make images available to the theme add them to the `<THEME TYPE>/email/resources/img` directory of your theme. These can be used from within directly in HTML templates.
For example to add an image to the `mytheme` copy an image to `themes/mytheme/email/resources/img/logo.jpg`.
To use directly in HTML templates add the following to a custom HTML template:
[source,html]
----
<img src="${url.resourcesUrl}/img/image.jpg" alt="My image description">
---- ----
==== Messages ==== Messages