S
S
Sergey Ignatiev2018-08-13 01:10:14
MODX
Sergey Ignatiev, 2018-08-13 01:10:14

How to set up an email template (eg tpl.msEmail) in miniShop2 / Fenom / MODX?

Good afternoon.
I can’t figure out where the values ​​​​are substituted from in the letter template?
For example, in this piece of code:

<p style="{$style.p}">
  {block 'footer'}
   <a href="{$site_url}" style="color: #999999;">
      {'site_name' | option}
   </a>
 {/block}
</p>

For example, if you want to replace the value of 'site_name', how do you do it?
Fenom documentation, unfortunately, is not clear to me.
Can you suggest?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Gureshidze, 2018-08-17
@enigman90

{'site_name' | option}
This is a Fenom call to the modx "site_name" system setting. Either change it in the system settings for the specified site_name key, or simply delete {'site_name' | option} and write in the text what you need. I think you can just create a system setting of the site_name_email type, specify the desired text there and output it like this
{'site_name_email' | option}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question