How to add mirror link page to custom html 5 template? | Community
Skip to main content
Level 2
July 1, 2023
Solved

How to add mirror link page to custom html 5 template?

  • July 1, 2023
  • 1 reply
  • 4583 views
No text available
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ParthaSarathy

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?


@giuliozu ,

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>

 

1 reply

ParthaSarathy
Community Advisor
Community Advisor
July 2, 2023

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

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
GiulioZuAuthor
Level 2
July 2, 2023

And automatically Adobe Campaign will hide this cta in web version?