Solved! Go to Solution.
Views
Replies
Total Likes
You can use OOTB Content block 'Link to mirror page'
Or try below script
<html>
<head/>
<body>
<% if ( document.mode != 'mirror' && document.mode != 'forward' ) { %><p align=center>
<font style="font-family: Verdana, Arial; font-size: 10px">
<a href="<%@ include fragment='MirrorPageUrl' %>" _label="Mirror page" _type="mirrorPage">Click here for Browser version</a>
</font>
</p><% } %>
<p>Other Email Body Content</p>
</body>
</html>
Views
Replies
Total Likes
Hi @GiulioZu ,
You can add out of box mirror page personalization block by adding <%@ include view='MirrorPage' %> in HTML.
In email body, it will render us:
If you are unable to view this message correctly, click here
Instead of above default text content for mirror page, if you want to display other text like 'Click here for Browser version', then you can add below syntax in your HTML template
<a href="<%@ include view='MirrorPageUrl' %>" _label="Mirror Page" _type="mirrorPage">Click here for Browser version</a>
Now in the email body, the above will render us:
Click here for Browser version
Views
Replies
Total Likes
And automatically Adobe Campaign will hide this cta in web version?
Views
Replies
Total Likes
Attach the final HTML I'm uploading in my campain using the legacy edfitor,
but the email seems to have some error, the preview does not show up and if I do send proof+rendering html it does not arrive.
when I remove the mirror line everything works again. Do you any suggestion?
Views
Replies
Total Likes
Can you see if the below doc helps?
Views
Replies
Total Likes
Hi @GiulioZu ,
Your query is for adding mirror page in email using Adobe Campaign standard?
Views
Replies
Total Likes
Hi @GiulioZu ,
If you are using adobe campaign standard, use the below syntax
Adobe Campaign Standard:
href="<%@ include fragment='MirrorPageUrl' %>"
Example, (try the below HTML script in your delivery and check it)
<html>
<head/>
<body>
<p>
<a href="<%@ include fragment='MirrorPageUrl' %>" _label="Mirror page" _type="mirrorPage">Click here for Browser version</a>
</p>
</body>
</html>
Adobe Campaign Classic:
href="<%@ include view='MirrorPageUrl' %>"
<html>
<head/>
<body>
<p>
<a href="<%@ include view='MirrorPageUrl' %>" _label="Mirror page" _type="mirrorPage">Click here for Browser version</a>
</p>
</body>
</html>
Views
Replies
Total Likes
ok @ParthaSarathy , it's working using:
<a href="<%@ include fragment='MirrorPageUrl' %>" _label="Mirror page" _type="mirrorPage">Click here for Browser version</a>
but when i click and go to web version, this link is still visible. It should be not visible, how can i hide in web version?
Views
Replies
Total Likes
You can use OOTB Content block 'Link to mirror page'
Or try below script
<html>
<head/>
<body>
<% if ( document.mode != 'mirror' && document.mode != 'forward' ) { %><p align=center>
<font style="font-family: Verdana, Arial; font-size: 10px">
<a href="<%@ include fragment='MirrorPageUrl' %>" _label="Mirror page" _type="mirrorPage">Click here for Browser version</a>
</font>
</p><% } %>
<p>Other Email Body Content</p>
</body>
</html>
Views
Replies
Total Likes
By entering your condition seems the HTML editor doesn't read it correctly:
and the mail is not sent.
pls copy paste the exact HTML content provided above
It should be
<% if ( document.mode != 'mirror' && document.mode != 'forward' ) { %>
Views
Replies
Total Likes
I inserted "&&" but code editor converted in "&&" (using "show source")
Views
Replies
Total Likes
Then you can use only
<% if ( document.mode != 'mirror') { %>
<html>
<head/>
<body>
<% if ( document.mode != 'mirror') { %><p align=center>
<font style="font-family: Verdana, Arial; font-size: 10px">
<a href="<%@ include fragment='MirrorPageUrl' %>" _label="Mirror page" _type="mirrorPage">Click here for Browser version</a>
</font>
</p><% } %>
<p>Other Email Body Content</p>
</body>
</html>
Views
Likes
Replies