Skip to content
PostCraft
Email campaigns from the MODX manager with a send window, tracking and unsubscribe pages
  • MODX 2
  • MODX 3
  • PHP 7.2
  1. Extras
  2. PostCraft
  3. Manager page
  4. Templates

Templates ​

The template is the whole letter. PostCraft sends the chunk HTML as is, without the site header or footer.

Chunks ​

Templates live in chunks named PostCraft.Name. After install there are two:

ChunkContent
PostCraft.Blankgreeting, text, links to the web version and unsubscribe
PostCraft.Promothe same with a button

Package upgrades do not overwrite these chunks, but for your own letters a copy is handier: Create copy and a name like Offer. PostCraft saves the chunk as PostCraft.Offer. A name may contain Latin letters, digits, dot, _ and -.

Editor ​

The editor follows the which_editor system setting:

which_editorEditor
CKEditorCKEditor
TinyMCE RTETinyMCE
emptyHTML field

The preview shows the letter in two widths: Phones and Desktop. Refresh preview redraws it after edits, Save template writes the chunk.

Placeholders ​

PlaceholderValue
web version URL
unsubscribe page URL

PostCraft fills them for each recipient. With click tracking on, the other letter links go through the t.php redirect.

Layout tips ​

  • Put styles into the style attribute. Mail apps often strip <style>.
  • Keep the letter within 600–640 px.
  • Use full image URLs with https://.