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 - $Member.FirstName


Go to End


2 Posts   993 Views

Avatar
Rossel

Community Member, 18 Posts

9 February 2012 at 5:37pm

Edited: 09/02/2012 7:03pm

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;
		}

Avatar
BigD1214

Community Member, 24 Posts

14 August 2012 at 9:54am

I am having the same issue. Any reference to the Member object will not display in the newsletter.ss Please Help! Thanks