Blog

How to tell, if a DataObject is already written to DB

Sometimes you want to check, if you're DataObject is still a new object or already written to DB, e..g in your onBeforeWrite() method. You can either check
Read more about 'How to tell, if a DataObject is already written to DB'...

Howto send emails to more recipients

Silverstripe's Email class uses the standard php mail() function for sending emails. Sending an email to one recipient is clear, put the mail adress in the "to" parameter.
Read more about 'Howto send emails to more recipients'...

Admin Login Styling

Often people ask if they can style the admin, yes and there is a module for that...
Read more about 'Admin Login Styling'...

Include raw HTML in gridfield

If you need to show data within a gridfield including raw HTML... <?php class ObjectA extends DataObject { static $db = array( "Name" => "Varchar", ); static $has_many = array(...
Read more about 'Include raw HTML in gridfield '...

Multiple Line Enumerations

When adding Enums to you db array sometimes there are many items and/or with a long length, you can split the lines of the values as follows...
Read more about 'Multiple Line Enumerations'...

1 2 3 4 5 6 7

RSS feed for this blog