Lack of interest <xen:include> and <xen:css> in Email Templates

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Marcus

Well-known member
I would love to include templates within Email Templates.

It would also great to include CSS into email templates, if it is necessary to include it directly within each html tag, there might be an already available function for doing that? That would work like this

mails_css (template)
PHP:
.classA {font-weight: bold}

verification_mail (template)
PHP:
<xen:require css="mails_css" />

<p class="classA">Some text</p>
would be translated into
PHP:
<p style="font-weight: bold">Some text</p>


If there is none function available for doing that: One quick and dirty method could be to explode the CSS into an array:
$css['class = "classA"'] = 'style="font-weight:bold"';

... and replace($template, $css). You would only get one class per html tag and its not nice, but better than the current situation.
 
Last edited:
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom