Hi DW,
In relations to this thread http://developer.dynamicweb.com/forum.aspx?ThreadID=38064 i've create a template that has this logic:
<!--@If(EmailMarketing:Email.ContentLink.Clean!='')--> <div class="block"> <!-- Start of preheader --> <table width="100%" bgcolor="" cellpadding="0" cellspacing="0" border="0"> <tbody> <tr> <td width="100%"> <table width="580" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth"> <tbody> <!-- Spacing --> <tr> <td width="100%" height="5" colspan="2"></td> </tr> <!-- Spacing --> <tr> <td align="left" valign="top" style="width: 55%;" width="55%"> <!--@EmailMarketing:Email.PreHeader.Clean--> </td> <td align="right" valign="top" style="" st-content="preheader"> <!--@Translate( newsletter_Mailbody_ReadOnline, "Hvis du ikke kan se nyhedsbrevet så ", global )--> <a class="hlite" href="<!--@EmailMarketing:Email.ContentLink.Clean-->" style="text-decoration: none; color: #0db9ea"><!--@Translate( newsletter_Mailbody_ReadOnline_ClickHere, "klik her", global )--></a> </td> </tr> <!-- Spacing --> <tr> <td width="100%" height="5" colspan="2"></td> </tr> <!-- Spacing --> </tbody> </table> </td> </tr> </tbody> </table> <!-- End of preheader --> </div> <!--@EndIf-->
So when @EmailMarketing:Email.ContentLink.Clean has a value, i want to render a top element that shows the preheader text and the "view online" link.
But when i recieve my mail it looks like this: (The lorem ipsum is the value i entered in the preheader field)
My own preheader tag is not rendere, and my content link is gone aswell.
When looking into the sourcecode of the email i can see that this is injectet into the email just after the body tag:
<span style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</span><br><img src="http://www.domain.tld/Admin/Public/EmailMessaging/MessageTracker.ashx?MessageId=3&RecipientId=1" style="position: absolute; height: 1px; width: 1px; top: 0; left: 0" alt="">
The logic should be, that if i have the preheader tag in my template, that means i know where i want to place it, and the CMS should not inject anything to my mail.
Also, the preheader tags you inject is buggy, since it's suppose to be invisible, but it's rendered just fine in Outlook.
Is there a bug in DW in regards to the ContentLink tag, or is it impossible for me to do what i'm trying to do?
// Martin