Jump to main content Jump to doc navigation

Making a custom Template

  • The easiest way is to just Duplicate the EletterSample Template. Go to the Elements tab on the left panel in your MODX Manager. Expand Templates then expand Eletters. Once you see EletterSample, right click on it. A dialog will pop up and then just click on Duplicate Template. Then fill in the name you want.
  • Now review the code and then make your own code. Note you need to have all of the Eletter TVs selected otherwise the program will not generate an email.

Placeholders you can use in the Template

All MODX tags and elements as you would in a normal template are available. These placeholders are also available within any TV or the content area.

Example usage: [[+manageSubscriptionsUrl]]

Name Description
trackingImage Use [[+trackingImage]] for an image, you can also put a custom image/banner doing this: [[+trackingImage]]image=test.jpg then put the image in assets/components/eletters/images/
Example useage:
manageSubscriptionsUrl The URL that allows the subscriber to manager their subscriptions, the generated links has unique subscriber code
unsubscribeUrl The URL that allows the subscriber to unsubscribe from your eletters, the generated links has unique subscriber code
manageSubscriptionsID The page ID of the manage subscriptions page
unsubscribeID The page ID of the unsubscribe page

Subscriber Personal Information Placeholders

Note you need to have actually collected each specific field if you wish to use them. It is recommended that you set first_name, last_name and email to required on your signup forms and set the other fields as you wish. date_created is auto generated so don't put that field on your signup form.

Name Description
first_name First name
m_name Middle name
last_name Last name
fullname First name + Last name
company Company
address Street Address
city City
state State
zip Zip or Postal Code
country Country
email Email address
phone Phone number
cell Cellphone number
crm_id CRM (Customer Relationship Manager) ID, if you use a product like this
date_created The date the person subscribed or when an admin added their account

See Also

  1. Eletters.API
  2. Eletters.FormIt
  3. Eletters.Import CSV
  4. Eletters.Templates

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • deJaya
  • eydolan
  • Lefthandmedia
  • Murray Wood
  • Following Sea
  • Anton Tarasov
  • Stéphane Jäggi
  • Raffy
  • Snow Creative
  • A. Moreno
  • Nick Clark
  • JT Skaggs
  • Helen
  • YJ
  • krisznet
  • Richard
  • Yanni

Budget

$306 per month—let's make that $500!

Learn more