Newsletter Subscription Localization

hassan kalach asked on September 26, 2017 13:19

i have a newsletter subscription web part and i need to have different text when ever a user subscribe and it should be related to the website language any idea ?

Recent Answers


Matt Nield answered on September 26, 2017 13:47 (last edited on September 26, 2017 13:47)

You should be able to use the localization string, Hassan. Try looking at the 'Working with resource strings' page and see if it helps. You shoul be able to use syntax similar to the following in the required places in the Newsletter subscription web part fields:

{% GetResourceString("stringKey") %}

0 votesVote for this answer Mark as a Correct answer

hassan kalach answered on September 26, 2017 13:49

the problem is that i don't see any fields inside the news letter subscription web part for either successfully subscribed or not that's my problem . and thank you for your help

0 votesVote for this answer Mark as a Correct answer

Matt Nield answered on September 26, 2017 14:17

My honest thought is using a macro to determine the visibility of the web art itself. Perhaps having an alternate webpart to display if the user has previously subscribed. But I'd need to look about for that macro as I don't know it off the top of my head.

0 votesVote for this answer Mark as a Correct answer

Matt Nield answered on September 26, 2017 16:54 (last edited on December 10, 2019 02:31)

Sorry for the delay, Hassan. If you set the Visibility for the Newsletter subscription web part using the following on-line marketing macro, you can hide it to users who are already subscribed:

{% !OnlineMarketingContext.CurrentContact.SubscribedToNewsletter(ToGuid("FBC356CE-D9D1-4F6C-9AB8-30B78C2DD4C2")) |(identity)GlobalAdministrator%}

The GUID is the GUID for the individual newsletter. The documentation suggests that you can use the newsletter name, though I could not get that to work.

Doing this you could place another web pert in the same zone with the opposite macro results **_or_** use a content personalization variant using the same macro if you want to give them access to another variation of the newsletter sign-up.

4 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.