Home - Your one stop SilverStripe learning resource
- Show all
- Site Tree
- Site of the Month
- Model Admin
- SilverStripe 3
24 July 2009 | | | Supports v2.4, v2.3Tweet
The default install of SilverStripe contains an array of buttons for the TinyMCE HTML editor. However usually your client will need some extra functionality or you may want to keep things simple for them by removing some of the buttons. As of SilverStripe 2.3.2 this is very easy and can be achieved by adding some code to the _config.php file.Continue reading...
SnippetsAdding Gravatars to your site
8 October 2010 | | | Supports v2.4, v2.3Tweet
Gravatar is a great service that allows you to pull in members profile photos directly from their Gravatar accounts. It's used right here on SSbits and it also part of the Forum module. It's also incredibly easy to integrate into your site!Continue reading...
15 October 2010 | | | Supports v2.4Tweet
2.4 has introduced the SiteConfig, which by default allows the user to switch themes - if they exist.
It's incredibly useful to have this functionality built-in now, but for those that only have one theme for a site, it's a bit of unnecessary clutter. Here is how to remove it by using a decoratorContinue reading...
27 September 2011 | | | Supports v2.4Tweet
This is a little snipped i've been using to redirect a custom page to it's first child. It extends the init method of the Controller. This has proven useful in cases where the client wants to re-sort the child pages and doesn't want to mess around the configuration of a redirector page.Continue reading...
10 November 2010 | |Tweet
Here we are, 5 of this months best entries are now up for you to vote on your favourite!Continue reading...
7 October 2010 | | | Supports v2.4, v2.3Tweet
Have you ever found yourself using DataObject::get() to fetch objects in a has_many so that you can filter/sort them easily?
Well as it happens there is no need to do this thanks to a totally undocumented bit of code!Continue reading...
28 October 2010 | | | Supports v2.4Tweet
In this tutorial we are going to add a form to a sidebar that can be included on any page on a website. You will be able to set whether to show the Form on a particular page via checkbox in the CMS. The work is based on the Working with SiteConfig and Creating a Simple Contact Form tutorials.Continue reading...
SnippetsUsing a Password Validator
18 October 2010 | |Tweet
The Password Validator allows you to set particular criteria for your members passwords. For example if you wanted to have a minimum length of 8 characters and contain lowercase and uppercase characters, well that's a simple case of adding a couple of lines to your _config.php file!Continue reading...
11 September 2011 | | | Supports v2.4, v2.3Tweet
The problem I was trying to solve was for a dropdown select box to toggle fields in the form, depending on whether a link is internal or external to the site.Continue reading...
31 October 2011 | | | Supports v2.4Tweet
There is a method on SilverStripe's Form class to set a success or error message when the form is submitted. That's cool... but sometimes you need to display a message that is not related to a form. I've created a couple of simple controller methods to enable setting and displaying of message banners anytime.Continue reading...
6 January 2012 | |Tweet
It's been a while, but Site of the month is finally back and there are some great sites to choose from!Continue reading...
9 September 2011 | |Tweet
The Votes are (finally) in! And the winner of September's SSbits Site Of The Month is.....Continue reading...
1 June 2012 | |Tweet
The Votes are in! And the winner of May 2012 SSbits Site Of The Month is.....Continue reading...
31 May 2010 | | | Supports v2.4, v2.3Tweet
The Member system that comes with SilverStripe offers substantial control over your site's authentication capabilities. It often requires the developer to build out or extend most common functionality to websites. This is great in that you are never "stuck" with the out-of-the-box offerings, but as any SS dev knows you end up with a little bag of Member tricks that gets used across many projects. Presented here is one that I use often.Continue reading...
15 April 2010 | | | Supports v2.4, v2.3Tweet
Often when doing development work on a website - and particularly the templates - it can be a pain having to remember to add ?flush to the end of the URL to make sure all of your changes have come through. I'm sure that all of us have had that "d'oh" moment when we have spent too much time wondering why our changes weren't working, only to find a simple flush fixed it.Continue reading...