DitsNews
Last updated Apr 7th, 2021 | Page history | Improve this page | Report an issue
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
Budget
$301 per month—let's make that $500!
Learn moreWarning Author no longer works at Dit's Media, package not updated since July 2011
What is DitsNews?¶
DitsNews is a component for managing Newsletters with MODX Revolution.
Features¶
- newsletters/groups/subscribers management
- import/export subscribers (CSV) (in 0.2.1)
- message queue (50 messages per batch)
- subscribe through form
- confirm subscription (link in email message)
- unsubscribe via link in newsletter
- public/private groups (you can only subscribe to public groups)
History¶
Being developed since December 2010 by ditsmedia.
Version | Release date | Contributors | Remarks / highlights |
---|---|---|---|
0.1.0 alpha | 24 Dec 2010 | ditsmedia | Initial release. |
0.1.0 alpha2 | 11 Jan 2011 | ditsmedia | several issues fixed |
0.2.0 alpha | soon! | ditsmedia | New codebase |
Requirements¶
- MODX Revolution (tested with 2.1.1)
- FormIt (for sign-up form)
- Cronjobs (or some other method to run a script periodically)
Development & Bug reporting¶
DitsNews is currently being developed on Github. That is also the place to report bugs, file feature requests and improvements. You may also fetch the latest commits from the Develop branch.
Github: https://github.com/ditsmedia/DitsNews
Installation¶
Warning Version 0.2.0 is not 100% compatible with 0.1.0! There are some database and functionality changes. As always, backup before updating! Also, the CSV import/export is missing in this release. It will be back in 0.2.1.
- Install through Package Management
- Add a cronjob (change paths): */5 * * * * /path/to/php /path/to/core/components/ditsnews/cron/cron.php
- Create the newsletter template (just a normal template; CSS must be in the template itself with full URL paths to images. No external CSS!)
- Create a signup page (ditsnewssignup chunk; change as required)
- Create a "Thank you" page (and set it as 'redirectTo' in the ditsnewssignup chunk)
- Create a confirm / opt-in page (add ditsnewsconfirm snippet) and set it's id in ditsnewssignup chunk
- Create a unsubscribe page (add ditsnewsunsubscribe snippet) and add a link to this page in your newsletter template
- Go to Components -> DitsNews and change the settings (Menu -> Settings)
Usage¶
DitsNews consists of two parts. The first part is a component for the backend which lets you manage your newletters, subscribers, groups, settings. The second part is the sign-up form where users can sign-up for the newsletter.
In Development This section needs an update with correct naming and technical settings
Short guide¶
- Add a testing Group
- Add yourself as a subscriber (and add yourself to the testing group)
- Create a new newsletter and select the document you want to send. Send it to the testing group only!
- After the cronjob runs you will receive your newsletter
- Test the newsletter in many differtent email clients (Apple Mail, Outlook, Gmail, etc.)
- For every webmail client: check the newsletter in different browsers!
Backend - Settings¶
You can go to the settings of DitsNews by drop-down list of the menu button on the right. There are some basic settings available:
- Name (email-from)
- Email (email-from)
- Bounce-Email-Adress
- Confirmation page (ID required)
- Unsubscribe page (ID required)
- Template (used for Newsletters)
Backend - Groups¶
You need a group to send a newsletter. So create a basic group with public setting. If you don't want users to be able to subscribe via form, create a group without public setting.
Backend - Subscribers¶
Here you can add new subscribers manually or do CSV-Imports and CSV-Exports of subscribers. You can add / edit some user data:
- First Name
- Last Name
- Company
- E-mail adress (required)
- Status (active / inactive)
- assign to groups
Backend - Creating a Newsletter¶
A Newsletter is fully created with MODX native templates and ressources. So first step is to create a ressource (with all your newsletter content) based on your newsletter-template. After creating the ressources, go to components->DitsNews and press "new newsletter". You now need to fill out the subject (which actually is the e-mail subject) field and select your document from drop-down list. There are only ressources shown assigned with correct template (see Backend-Settings).
available placeholders¶
[[+firstname]]
[[+lastname]]
[[+fullname]]
[[+company]]
[[+email]]
Examples¶
Exampleof a Newsletter Template¶
[[!ditsnewsPlaceholders? &firstnameDefault=`Subscriber`]]
<!-- Sets firstname field of email newsletter to "Subscriber" when empty -->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>My newsletter</title>
<base href="[[++site_url]]" />
<!-- Important! DitsNews needs this to create correct URLs! -->
<style type="text/css">
a {
font-weight: bold;
color: #ff0000;
}
</style>
</head>
<body>
<p>Hello [[!+firstname:default=`Subscriber`]],</p>
[[*content]]
<p><a href="[[~10]]">Unsubscribe</a></p>
<!-- Link to unsubscribe page: user data will be added while sending -->
</body>
</html>
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
Budget
$301 per month—let's make that $500!
Learn more