Blog
How to debug a website over ngrok
Payment gateways like Stripe or PayPal often send asynchronous notifications directly to an endpoint on your server. This won't work on a local development that is not accessible from the outside.
Read more about 'How to debug a website over ngrok'...
Read more about 'How to debug a website over ngrok'...
Basic Site Search in SilverStripe 4
Sometimes when implementing search functionality on a SilverStripe website, you may find youself just needing a very basic site search without wanting to implement a full-scale search platform like Solr.
Read more about 'Basic Site Search in SilverStripe 4'...
Read more about 'Basic Site Search in SilverStripe 4'...
Why don't Silverstripe CMS queries run in MySQL?
When debugging an ORM call, you may find yourself collecting the SQL that will be exectued via the DataList::sql() function - this is great, but when copied and pasted into e.g.
Read more about 'Why don't Silverstripe CMS queries run in MySQL?'...
Read more about 'Why don't Silverstripe CMS queries run in MySQL?'...
SilverStripe 4 behind HAProxy - absolute URL has wrong protocol
Today I installed my latest project on the provided server and had some "mixed content" issues due to SilverStripe generating a "http" basetag on a https site.
Read more about 'SilverStripe 4 behind HAProxy - absolute URL has wrong protocol'...
Read more about 'SilverStripe 4 behind HAProxy - absolute URL has wrong protocol'...
Connect SilverStripe with another Database on the fly
Imagine you need to grab data from a legacy database, e.g. while migrating stuff to a new setup. How can you easily do that easily and elegantly?
Read more about 'Connect SilverStripe with another Database on the fly'...
Read more about 'Connect SilverStripe with another Database on the fly'...
Debugging database changes while testing
I love to use xdebug and I also love coding with unit tests. It saves me a lot of time clicking around in the backend.
Read more about 'Debugging database changes while testing'...
Read more about 'Debugging database changes while testing'...
Hiding pagestypes from the sitetree in SilverStripe 4
Sometimes when you have a ModelAdmin for creating pages you really don't want to clutter the SiteTree with all this pages.
Read more about 'Hiding pagestypes from the sitetree in SilverStripe 4'...
Read more about 'Hiding pagestypes from the sitetree in SilverStripe 4'...
Inlining fields in the CMS in SilverStripe 4
Sometimes you'll find in SilverStripe your UI gets a bit cumbersome if you have many similar fields that really don't need to be full width.
Read more about 'Inlining fields in the CMS in SilverStripe 4'...
Read more about 'Inlining fields in the CMS in SilverStripe 4'...
How to translate for one or more items: Pluralism made easy
It is quite easy to pluralise .yml translated strings in SilverStripe 4 these days. Lets take a simple example where I want to pluralise some search results.
Read more about 'How to translate for one or more items: Pluralism made easy'...
Read more about 'How to translate for one or more items: Pluralism made easy'...
Fixing MySQL 5.7 troubles easily
Many hosters are now updating their machines to use MySQL 5.7. A minor update doesn't sound that bad, unfortunately one small change in MySQL's default config can cause major headaches...
Read more about 'Fixing MySQL 5.7 troubles easily'...
Read more about 'Fixing MySQL 5.7 troubles easily'...