Barry Swaisland

Posts by Barry Swaisland for Blog:

Speeding Up MySQL (instead of using sqlite)

Many people use sqlite for testing purposes because it's fast... and it's fast because it uses memory for many operations instead of the disk...
Read more about 'Speeding Up MySQL (instead of using sqlite)'...

ListboxField example that uses an arbitrary array of values

I've often used ListBox when dealing with DataObjects as the values being selected, it's a little undocumented how to deal with just an arbitrary array... so here is an example for that.
Read more about 'ListboxField example that uses an arbitrary array of values'...

Listening to changes in many_many relationships, but not hack the framework...

I wanted to add logging but changes to the relationships wasn't obvious at first and then I remembered I could overide the class managing the relationships...
Read more about 'Listening to changes in many_many relationships, but not hack the framework...'...

Module Review : SilverGraph

One common question when getting started with silverstripe is how to see the database.
Read more about 'Module Review : SilverGraph'...

Copy / Duplicate the DataObject

If you need to add ability for users to duplicate rows within ModelAdmin (or GridField) then please see the following module...
Read more about 'Copy / Duplicate the DataObject'...

How to Logout Inactive Users

If you need to control log out of logged in users that are not active for a certain amount of time...
Read more about 'How to Logout Inactive Users'...

Diagram of relationships in SilverStripe

After reading https://docs.silverstripe.org/en/3.1/developer_guides/model/ you might need a quick reminder on the relationships between objects... here is a quick visual reminder...
Read more about 'Diagram of relationships in SilverStripe'...

1 2 3