Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

newsletter module question


Go to End


577 Views

Avatar
powerflash

Community Member, 2 Posts

14 July 2013 at 10:40am

I edited the NewsletterRole.php file with this:

 * @package newsletter
 */
class NewsletterRole extends DataExtension {
	
	/*function extraStatics() {
		return array(
			'db' => array(
				'BlacklistedEmail' => 'Boolean'
			),
			'has_many' => array(
				'UnsubscribedRecords' => 'UnsubscribeRecord'
			)
		);
	}*/
	
	// after
	static $db = array("BlacklistedEmail" => "Boolean");
	static $has_many = array("UnsubscribedRecords" => "UnsubscribeRecord");

but in admin area click on newsletter tab and page is empty

thank you