Everything for the newsletter module appears to be working fine. Except for the $Member.FirstName in my template. Has anyone had any issues with this before? and aware of any solutions.
- I've got a Custom Member extending the Data Object Decorator
- Have version 0.4
I also have a custom function Ive added to NewsletterEmail.php, this works in the template fine.
function UpcomEvents() {
$today = gmdate('Ymd');
$thirtydays = gmdate("Ymd", (30*86400) + time());
$month_events = DataObject::get("EventResource", "Approval = '1'
AND (Date BETWEEN '{$today}' AND '{$thirtydays}')", "Date ASC", false, "20");
return $month_events;
}