Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Custom unsubscription page View modes: 
User avatar
Member
Member
christian.ferdinand-datenfabrik - 3/5/2012 5:45:58 AM
   
Custom unsubscription page
Dear Kentico Support,

we want to implement a custom unsubscription page, with standard site template and a text in the sense of


Dear {%SubscriberFirstName%} {%SubscriberLastName%},

we're sorry to hear ...etc etc... if you really want to unsubscribe, please confirm your e-mail address below.

e-mail: [____________]

[UNSUBSCRIBE-BUTTON]


and the button leads to a page saying "You have now been unsubscribed". How can I get a link to deliver the macro values to the next page? Or do you have other solutions?

Thank you very much,
Best Regards,
Chris

User avatar
Member
Member
kentico_michal - 3/5/2012 6:24:45 AM
   
RE:Custom unsubscription page
Hello,

You can modify the Newsletters - Unsubscription request e-mail template according to your needs. Within the template, you can use special macro: {%UnsubscribeLink%} - that gets resolved into a link to the unsubscription page, as defined by the Unsubscription page URL property of the given newsletter. You need to ensure that the unsubscription page contains the Newsletter unsubscription web part that performs the unsubscription after the user has been redirected to this page by clicking the UnsubscribeLink in the email. The Newsletter unsubscription web part provides a property called Confirmation text that is displayed to the user after a successful unsubscription.


Best regards,
Michal Legen

User avatar
Member
Member
christian.ferdinand-datenfabrik - 3/5/2012 8:16:56 AM
   
RE:Custom unsubscription page
Hello Michal,

thank you for your quick response.

Generally, this macro works fine. How can I change the displayed link name according to the current newsletter culture? If I put in {%UnsubscribeLink%}, it always shows the same link name.

Also, what I want to do is if one clicks on the unsubscription link in the newsletter, they should get redirected to a page where they are called by their name. How does a page get the information about a subscriber who clicks on an email link?

Thank you,
Best regards,
Chris

User avatar
Member
Member
kentico_michal - 3/6/2012 2:21:21 AM
   
RE:Custom unsubscription page
Hello,

The UnsubscribeLink macro does not take the current culture into account. The link generated by this macro contains query paramers, such as the subscriberguid, newsletterguid, issueguid, issueid parameters. Based on this information, the web part identifies the subscriber that should be unsubscribed. Anyway, you can take a look at the Newsletter unsubscription web part to see how it works in detail. You can see it in the ~\CMSWebParts\Newsletters\NewsletterUnsubscriptionWebPart.ascx.cs file.

Best regards,
Michal Legen