Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » Newsletter Module - $Member.FirstName

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 436 Views
  • Rossel
    Avatar
    Community Member
    18 Posts

    Newsletter Module - $Member.FirstName Link to this post

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

  • BigD1214
    Avatar
    Community Member
    11 Posts

    Re: Newsletter Module - $Member.FirstName Link to this post

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

    436 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.