SilverStripe

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 [...]

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.

How to setup PayPal Express Checkout with SilverStripe

May 3, 2011
Thumbnail image for How to setup PayPal Express Checkout with SilverStripe

The SilverStripe Payment module is really handy, its useful to have a payment module completely separate from ecommerce because it gives you so much freedom. The Payment-Test module is an ideal example of this. I used Payment-Test to create a basic booking system for instance, its a really good example of how to hook up [...]

Pear, PHPUnit, MAMP and SilverStripe Unit Testing

April 20, 2011
Thumbnail image for Pear, PHPUnit, MAMP and SilverStripe Unit Testing

Installing PHPUnit using Pear on Mac OSX was such a process I have to write it down. If you want to get started with unit testing in SilverStripe you need PHPUnit installed. Installing Pear and PHPUnit If you have MAMP installed on Mac OSX 10.6, you probably have Pear installed already and just need to [...]