Scheduled Tasks in SilverStripe

December 19, 2011
Thumbnail image for Scheduled Tasks in SilverStripe

Creating a scheduled task in SilverStripe, one that is called by cron, can be a bit fiddly and the documentation seems to have disappeared. Heres the process I followed to create a SilverStripe scheduled task that is run by cron.   Create your scheduled task Create a class that extends ScheduledTask (or YearlyTask, MonthlyTask, WeeklyTask, [...]

Bare bones SilverStripe image gallery module

November 17, 2011
Thumbnail image for Bare bones SilverStripe image gallery module

This is an example image gallery that has no dependencies on other SilverStripe modules – not counting the SilverStripe framework and cms haha. Just an example of a bare bones image gallery, using ComplexTableField instead of the DataObjectManager. If you are looking for a more complete Image Gallery Tutorial please follow that link to a [...]

Easy ‘Under Construction’ pages for SilverStripe sites

November 11, 2011
Thumbnail image for Easy ‘Under Construction’ pages for SilverStripe sites

For if you’ve ever been in the situation where you’ve developed a SilverStripe site for a client and now they want to review it before making it live – but you don’t have a staging server set up. What you usually want to do is give the client full access to their website, but prevent [...]

Posting invalid form data in SilverStripe unit tests

November 8, 2011
Thumbnail image for Posting invalid form data in SilverStripe unit tests

By default posting form data from a SilverStripe unit test seems to restrict your POST data to only valid values. Meaning, if you want to post a value for a select field on the form, the value must be in the options for that select field in order for it to be POST’d. Usually when [...]

Speed up SilverStripe Unit Testing with SQLite

November 6, 2011
Thumbnail image for Speed up SilverStripe Unit Testing with SQLite

Unit testing can be a useful process to kill those pesky bugs, luckily with SilverStripe its relatively easy to get started unit testing. Running a test can take some time though, a great way of speeding up unit testing (as pointed out to me by Will Rossiter on the IRC channel) is to use the [...]

HTML5 Multimedia Development Cookbook

July 26, 2011
Thumbnail image for HTML5 Multimedia Development Cookbook

HTML5 multimedia development is a fairly comprehensive account of all the main features of the HTML5 specification written in a cookbook, hands on style. Covering the basic changes in html markup this book will show you how to leverage those changes to lay out beautifully semantic html5 web pages which are accessible and cross browser [...]

Date range picker for SilverStripe model admin search

June 28, 2011
Thumbnail image for Date range picker for SilverStripe model admin search

After reading this awesome post by Aaron Carlino I decided a date range filter was just what I needed to filter search results in my ModelAdmin class. Then I read the comment by Ingo Schommer and that date range widget looked pretty badass so I incorporated that instead of having two fields like Aaron’s solution. [...]

SilverStripe 2.4 Module Extension, Themes, and Widgets: Beginner’s Guide by Philipp Krenn

June 3, 2011
Thumbnail image for SilverStripe 2.4 Module Extension, Themes, and Widgets: Beginner’s Guide by Philipp Krenn

The latest book offering in a short line of SilverStripe books is an enjoyable read and full of useful and practical content. As I read through I kept a file noting little tips that were either completely new to me or were techniques that I should be making more use of, by the end of [...]

HTML Emails with inline CSS on SilverStripe

May 8, 2011
Thumbnail image for HTML Emails with inline CSS on SilverStripe

This is a really neat method to include CSS styles into an HTML email inline, which is apparently the best practice for HTML emails.

Deploy websites using Git – the easy way

May 6, 2011
Thumbnail image for Deploy websites using Git – the easy way

After hours of playing around with ssh, sudo, user permissions etc. trying to deploy a PHP website from a Github repository, the best solution I could find was to not use Github at all. I am a big fan of Git and Github, but automatically deploying a website from a Github repository was very fiddly [...]