Blog

SS4: add HTML to a FormField label

Everyone knows that "Terms and Conditions" checkbox in forms. "By signing up you agree to..." with a link to the terms and condiditions.
Read more about 'SS4: add HTML to a FormField label'...

SS4: Replacement for good ol’ $ThemeDir: or loading themed resources

The upgrade to SS4.1 has changed how themed resources (and any other resources) need to be loaded. They will need to be loaded from the public/resources/ directory now.
Read more about 'SS4: Replacement for good ol’ $ThemeDir: or loading themed resources'...

SS4: Uncaught TypeError on dev/build

I updated a project to SilverStripe 4.1 on an older development VM. When running dev/build I got an error:
Read more about 'SS4: Uncaught TypeError on dev/build'...

SS4: edit many_many_extraFields in a GridField detail form

In a recent project I had a $many_many relation between TeamMember and TeamGroup where each member can have a different role per group.
Read more about 'SS4: edit many_many_extraFields in a GridField detail form '...

Syncing a ManyManyList

Sometimes you want to update a ManyMany relation to have exact this set of foreign keys. Not just adding and deleting, but both - best in just one call.
Read more about 'Syncing a ManyManyList'...

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'...

Batch renaming files and adding padded zeros to numbers

Today a customer sent me some hundred images I should add to an image gallery. Unfortunately the files were renamed under windows: uppercase JPG extension and - really annoying -...
Read more about 'Batch renaming files and adding padded zeros to numbers'...

Responsive Media added via TinyMCE in SilverStripe

In SilverStripe you can add Videos within the TinyMCE Editor by using the "Insert Media" Button.
Read more about 'Responsive Media added via TinyMCE in SilverStripe '...

Scaffolding Forms With many_many Relations (And Checkboxes)

In one of my latest projects we have a lot of frontend forms related to DataObjects. Instead of building the FieldList manually we use the form scaffolder, a great tool.
Read more about 'Scaffolding Forms With many_many Relations (And Checkboxes)'...

1 2 3 4 5 6 7 8

RSS feed for this blog