Bienvenido, Invitado
Recordarme

TEMA:

Live Website and email links in Content Template 7 meses 1 semana antes #255513

  • Autor del tema
  • skipt
  • Fuera de línea
  • Fresh Breezer
  • Fresh Breezer
  • Mensajes: 16
  • Gracias recibidas: 0
This may be elementary for some, but it took me long enough to get the syntax to work.

If you would like email addresses and website to be live on your content template pages you can add the followng. I add it in the code editor

For Email: (rename "EmailAddress with your field name)
{hide-if-empty EmailAddress}<a href="mailto:{EmailAddress:value}">{EmailAddress:value}{/hide}


For Website: (warning your data must include http:// or https:// in the field) target-blank opens the site in a new tab.
{hide-if-empty WebPage}<a href="{WebPage:value}" target="_blank" rel="noopener noreferrer">{WebPage:value}

if your field does not have http:// in the data you could try the following. if some sites have https:// but have not configured their redirects correctly you may get some bad links.
{hide-if-empty WebPage}<a href="http://{WebPage:value}" target="_blank" rel="noopener noreferrer">{WebPage:value}

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Live Website and email links in Content Template 7 meses 1 semana antes #255525

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 7381
  • Karma: 3
  • Gracias recibidas: 529
Hi,

thanks :)

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
Moderadores: ForumSupport
Tiempo de carga de la página: 0.047 segundos