CMS Development

matttunney
Colaborador líder

Is there a variable that relates to the webpage version switch in settings

resolver

Is there a variable i can reference to show/hide the display web version url in an email, based on when the web version switch is set in settings?

http://designers.hubspot.com/docs/hubl/hubl-supported-variables

Example:

{% if correct_variable %}
<p>Not rendering correctly? View this email as a web page <a target="_blank" href="{{ view_as_page_url }}" data-viewaswebpage="true">here</a>.</p> 
{% endif %}

 Running test sends the view as web page text appears regardless of the setting being set in settings.

Thanks

1 Soluciones aceptada
Jsum
Solución
Asesor destacado

Is there a variable that relates to the webpage version switch in settings

resolver

@matttunney try this:

{% if content.create_page %}

{% endif %}

This is in Hubspot's email markup tutorial and it is surrounding the "view in page" markup, but there is no explaination as to what it is for anywhere that I can find. Most likely this is it though. Let me know.

Ver la solución en mensaje original publicado

1 Respuesta 1
Jsum
Solución
Asesor destacado

Is there a variable that relates to the webpage version switch in settings

resolver

@matttunney try this:

{% if content.create_page %}

{% endif %}

This is in Hubspot's email markup tutorial and it is surrounding the "view in page" markup, but there is no explaination as to what it is for anywhere that I can find. Most likely this is it though. Let me know.