Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Newsletter Multi-lingual signups View modes: 
User avatar
Member
Member
paul.truman-sunmed.co - 11/29/2012 10:54:55 AM
   
Newsletter Multi-lingual signups
Hi, I have a newsletter sign up on my page. When a user signs up, I would like to group them by the locale they register under (so I can send a newsletter to e.g. french, german and italian seperately. Is that possible?

If not, could I automatically select the newsletter when they sign up based on the locale of the site they're using (in the webpart)? Then I can have a newsletter for French, german and Italian and just select one of them when they register.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/29/2012 9:29:38 PM
   
RE:Newsletter Multi-lingual signups
Hello,

Both of the outlined approaches are possible. One of them is also described in a knowledge base article.
Grouping users to groups or roles based on culture is also possible. You can for example create a custom event handler where you would check if a new user is created and assign him automatically to a group or role, or you can execute your code on the registration form, or you can create a custom scheduled event, which would periodically assign the users to groups.

Best regards,
Boris Pocatko

User avatar
Member
Member
paul.truman-sunmed.co - 11/30/2012 8:51:59 AM
   
RE:Newsletter Multi-lingual signups
Hey, I went for the first option and it worked a treat, many thanks :)

I have encountered another (small) problem though ... I have generated different double-opt in messages for each language, but the problem I have is the activation link text is always in English (even if I specify otherwise in the UI Culture). I'm guessing this is because the system can't recognise the email as the local language.

Is there any way round this? Like putting some code in there to force it to choose that language (or just showing the link value instead)?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/30/2012 7:34:18 PM
   
RE:Newsletter Multi-lingual signups
Hello,

Could you please send me the code you are using for the activation link and what it is resolved to? it is possible that you are only missing a resource string translation in the CMSResources folder.

Best regards,
Boris Pocatko