use Velocity within mailing content?

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

use Velocity within mailing content?

Postby bhcuong2008 » Wed May 14, 2014 10:54 am

Hi,

I wonder if we could use Velocity within mailing content. For example, I can use if-else condition on a recipient field for different output value, like this
===
If shoe_size > 40 then
value = "big"
else if shoe_size < 30 then
value = "small"
else
value = "medium"
===

So the final result will be different for each recipient.

Thanks
bhcuong2008
 
Posts: 26
Joined: Fri Apr 11, 2014 3:56 pm

Re: use Velocity within mailing content?

Postby Fatalin » Thu May 15, 2014 10:47 am

Hi bhcuong2008,

You could try to solve your problem using Target Groups and dynamic content.
The situation is similar to our bi-lingual user registration, where we send either a German or English mailing based on the target group (= based on the language setting).

See the "Target Group" section in the user handbook.

Best Regards
Markus
Günstige Software gibt es bei http://www.Software-Butler.de
Fatalin
 
Posts: 111
Joined: Wed Aug 05, 2009 10:51 am
Location: Troisdorf, Germany

Re: use Velocity within mailing content?

Postby bhcuong2008 » Thu May 15, 2014 4:20 pm

Thank Fatalin :)

I know this feature and is using this. However, there are some small cases suitable for using template. It will
make simpler to do. For example, if we want to use salutation in our mail, such as Sir / Madam, it will be simpler
than using Target group. If using target group, we must define 2 groups for handling this case.

By using templating (Velocity or something), content can be generated dynamically (in executing stage, not designing stage).

I have the same idea as bk007, in this post, suggestions-f4/topic2603.html
bhcuong2008
 
Posts: 26
Joined: Fri Apr 11, 2014 3:56 pm


Return to Using OpenEMM

Who is online

Users browsing this forum: No registered users and 2 guests

cron