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.
|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.
|fullname||First name + Last name|
|zip||Zip or Postal Code|
|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|