Barry Swaisland
Posts by Barry Swaisland for Blog:
Installing SS on 1and1
I've recently re-installed some SilverStripe sites on 1and1 web hosting. It was Painful!
Read more about 'Installing SS on 1and1'...
Read more about 'Installing SS on 1and1'...
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)'...
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...
Read more about 'ListboxField example that uses an arbitrary array of values'...
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...'...
Read more about 'Listening to changes in many_many relationships, but not hack the framework...'...
Add fields to the beginning / end of an Edit Form when you cannot predict the field name
When you need to add a field to the start or end of a set of fields on an edit form but you don't know the name of the field...
Read more about 'Add fields to the beginning / end of an Edit Form when you cannot predict the field name'...
Read more about 'Add fields to the beginning / end of an Edit Form when you cannot predict the field name'...
Module Review : SilverGraph
One common question when getting started with silverstripe is how to see the database.
Read more about 'Module Review : SilverGraph'...
Read more about 'Module Review : SilverGraph'...
Redirect Member after login
First extend MemberLoginForm like this...
Read more about 'Redirect Member after login'...
Read more about 'Redirect Member after login'...
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'...
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'...
Read more about 'How to Logout Inactive Users'...
Haversine Formula / Magic Square / Circle
This function would do this (providing you have Member extended with PostCode)
Read more about 'Haversine Formula / Magic Square / Circle'...
Read more about 'Haversine Formula / Magic Square / Circle'...