Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ernst Utvik 123 posts 235 karma points
    Aug 27, 2012 @ 12:26
    Ernst Utvik
    0

    Url to latest newsletter from webpage

    Is there any way I can get the url to view the latest sendt newsletter online? I want to make a "Read our latest newsleter" link on the webpage.

  • jigar 170 posts 233 karma points
    Aug 27, 2012 @ 13:58
    jigar
    0

    Anyways you can write a macro or user control that generates the HREF with latest NEWLETTER ID...

    E.g href="myweb/news/NewsId=LatestNewsID" and get this done.

    Thanks,

    JIgar

     

  • Markus Johansson 1913 posts 5760 karma points MVP c-trib
    Aug 27, 2012 @ 14:29
    Markus Johansson
    0

    Hi Ernst!

    It depends on what kind of content you are displayiong and if you are using the "merge fields" to ie. show the recivers email address?

    If you are using these features it could be hard to render the e-mail, any way - the build in feature to display an email is this one: /newsletterstudio/pages/newsletterrender.aspx?nid=aOHPCQx1URo%3d&e=[trackemail]

    The id is "compressed" using this line of code:

    string url = ProtocolAndHost + string.Format("umbraco/newsletterstudio/pages/newsletterrender.aspx?nid={0}&e={1}", Common.Compress(parameters.Newsletter.Id.ToString()),Common.Compress("[email protected]"));

    You have to set the email since the render engine will expect an email, but if you don't have any placeholders (the [email]-tag) it will now show anywhere.

    // Markus

Please Sign in or register to post replies

Write your reply to:

Draft