Textpattern CMS Template Tags

<txp:email /> sing/cont tag, 3 attributes

email

The email tag is both a single tag and a container tag. Textpattern will replace it with a mailto: email link, according to the attributes set.

attributes

email=“unset”

  • The e-mail address from which to make the link.
  • Value: Any valid email address.
linktext="Contact" 
  • The displayed link text.
  • Value: Any text.
title="unset" 
  • The title attribute to assign to the link.
  • Value: Any valid (X)HTML title.

genealogy

Version 4.0.5

  • Can be used as a container.
<txp:email /> 3 examples

Simple e-mail link

<txp:email email="john.doe@example.com" linktext="Contact me" title="Send me an Email" />

Pre-populate message subject and body

<txp:email email="john.doe@example.com?subject=Lorem Ipsum&body=Sit amend" />

Container example

<txp:email email="foo@example.com" title="Email us!"><img src="/images/email.gif" /></txp:email>