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:
parent
d36913a240
commit
16dddfa49c
1 changed files with 14 additions and 1 deletions
|
@ -238,7 +238,20 @@ Or to use directly in HTML templates add the following to a custom HTML template
|
|||
|
||||
[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
|
||||
|
|
Loading…
Reference in a new issue