View more context

 

mmativ

ohhh, that’s do the trick 🎊

👍 (3)
Rathai

I'm trying retrieve pages that are published in last 30days. Is there any easy way I can do without writing raw query

muskie9

something like Versioned::get_by_stage($baseClass, Versioned::Live)->filter('LastEdited:GreaterThan', $yourDate) might work

LiamC

Morning all , If I am getting a datalist and storing it into an array for email - I thought that <% loop Entries %> would work in the email SS template but it doesnt

LiamC
  1. $Entries = Entries::get()->filter(array('CustomEntryRecordID' => $EntryRecordID));
  2. $data["Entries"] = $Entries;
LiamC
  1. $email = new Email($From, $To, $Subject);
  2. $email->setHTMLTemplate('Email\Thankyou');
  3. $email->setData($data);
  4. $email->send();