Blog
Show filenames in templates for debugging
SilverStripe's template engine hides by default names of templates. While developing and debugging template stuff you'd like to see them in your rendered page.
Read more about 'Show filenames in templates for debugging'...
Read more about 'Show filenames in templates for debugging'...
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'...
Block javascript in template
Everyone knows that Requirements::block('/path/to/javascript.js'); in php blocks this file from being loaded. This is important to e.g. require a newer version of jQuery.
Read more about 'Block javascript in template'...
Read more about 'Block javascript in template'...
Easier coding with PHPStorm templates
If you're using PHPStorm or Intellij IDEA you might know, that you can use some templates to ease your work.
Read more about 'Easier coding with PHPStorm templates'...
Read more about 'Easier coding with PHPStorm templates'...
$_FILE_TO_URL_MAPPING and symlinks
Howto solve "[Warning] Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set" when your webroot is symlinked to the latest release?
Read more about '$_FILE_TO_URL_MAPPING and symlinks'...
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'...
Default Domain Route and ModelAdmin Panels on Framework Only Sites
Recently I was tasked with developing a small database driven solution and it sat perfectly in the SS framework being driven by controllers only.
Read more about 'Default Domain Route and ModelAdmin Panels on Framework Only Sites'...
Read more about 'Default Domain Route and ModelAdmin Panels on Framework Only Sites'...
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'...
Sorting in ModelAdmin
In many sites I work on there is a need to manage data that will be used on all pages.
Read more about 'Sorting in ModelAdmin'...
Read more about 'Sorting in ModelAdmin'...