Newsletter special fields like #unsubscribe#

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/3/2012 3:46:07 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: Newsletter special fields like #unsubscribe#

Regarding what to do if the referenced property is empty, there could be a simple convention in the token, such as #firstname#subscriber# or #firstname#valued crustomer#  where the optional second element is used to provide the text that would be used if the property was empty.

11/3/2012 7:27:51 AM
Gravatar
Total Posts 18439

Re: Newsletter special fields like #unsubscribe#

we're doing simple text replacement ie

string firstName = "joe";

 

letterText.Replace("#firstname#, firstName);

we are not parsing the tokens and cannot manipulate them or have extra params embedded in them, to replace them we need to know exactly what they are ahead of time. Any default raplacement values would need to be stored somewhere else, possibly as new properties on the newsletter definition.

Best,

Joe

11/6/2012 3:19:15 PM
Gravatar
Total Posts 18439

Re: Newsletter special fields like #unsubscribe#

fyi, I've completed the work to add tokens for #displayname#, #email#, #firstname#, and #lastname#

The fallback values can be configured on the newsletter definition edit page.

So, this will be in the next release. It is also now on the demo site though smtp is disabled there to prevent the demo site from being hijacked to send spam. But you can see where the fallback properties are and you can check the updated help links that explain the tokens.

Best,

Joe

11/9/2012 9:59:29 AM
Gravatar
Total Posts 83
-- Joe

Re: Newsletter special fields like #unsubscribe#

Thanks Joe!  You continue to rock!!

11/13/2012 5:49:46 PM
Gravatar
Total Posts 41

Re: Newsletter special fields like #unsubscribe#

Indeed - thanks Joe!  This sounds like the perfect solution; not over-engineered and will satisfy 99.99% of peoples' requirements I'm sure.

I'm getting quite close to buying you a beer.....!

You must sign in to post in the forums. This thread is closed to new posts.