TABLE OF CONTENTS › Create a Digest
This is surprisingly easy with Postmaster and Textpattern’s <txp:article_custom /> tag.
- Create a category called “digest”.
- Assign some articles to the category.
- Here are the bones of a form for your list [see below for a working example]:
<txp:article_custom category="digest"
form="my_form_for_newsletter_articles" />
<txp:bab_pm_unsubscribeLink type="html" />
- After sending the mail, go to the articles list, search by category, and bulk change them to other categories.
- With
<txp:article_custom />you can also sort by section, etc, so there are a lot of possibilities here.
You’ll need to use a more complicated form than the one above, and here’s why: <txp:article_custom /> outputs HTML1. That means you need to send HTML emails, and that means you must write out all the HTML — linebreaks, etc]. Here’s an example that will work:
<txp:bab_pm_mime type="text" />
This is the text version. Probably best to just send a link
to the section "digest." Please visit our site at
http://www.oursite.com/digest
<txp:bab_pm_mime type="html" />
<P>Here are the articles this week:</p>
<txp:article_custom category="digest"
form="pm_custom_articles" />
<P><txp:bab_pm_unsubscribeLink type="html" /></p>
<txp:bab_pm_mime type="end" />
1 For text emails, you might still be able to pull it off if you 1) set all articles to no_textile, and 2) didn’t create any linebreaks. This would have be tested thoroughly, I’m not sure it works.