Home - Your one stop SilverStripe learning resource
- Show all
- CMS
- Security
- DataObjects
- Site Tree
- Images
- CSS
- Templates
- Forms
- Member
- Decorators
- SiteConfig
- WYSIWYG
- Errors
- Database
- JavaScript
- Comments
- Themes
- SilverStripe
- SSBits
- URLs
- Translations
- Languages
- Login
- Site of the Month
- Relations
- DataObjectManger
- Screencast
- Installing
- cPanel
- Model Admin
- Controllers
- interview
- SilverStripe 3
- Review
- Search
- Reports
-
SnippetsExtending $LinkingMode to handle controller actions
20 October 2009 | |
TweetAs some of you might have noticed, as soon as you step outside of the standard SiteTree structure you're pretty much on your own. Today I had to make a menu that mixed normal SiteTree pages and controller actions.
Continue reading... -
SnippetsUsing a Password Validator
18 October 2010 | |
TweetThe 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... -
BlogSite of the Month: The Winner!
21 October 2010 | |
Tweet
The Votes are in! And the winner of October's SSbits Site Of The Month is.....
Continue reading... -
TutorialsRotating and Greyscaling Images using GD and Decorators
8 December 2010 | | | Supports v2.4
Tweet
Some of you might have noticed that SilverStripe's GD class has a couple of interesting looking functions, namely rotate($angle) and greyscale($Red, $Green, $Blue). However it was never quite clear how to use these functions (at least not to me anyway!). So after a bit of trial and error, it turns out it's pretty simple to achieve by decorating the image class and adding a couple of simple functions...
Continue reading... -
BlogVote Now! - May Site of the Month
20 May 2011 | |
Tweet
Here we have 5 excellent websites all developed in SilverStripe. But which one is best? You decide!
Continue reading... -
SnippetsOverriding Silverstripes language files with your own
28 October 2009 | |
TweetIn my most recent project I've had to run a site in another language (Swedish) and run into some issues which I thought I'd share with all of you. Now Silverstripe probably comes with a translation for your language but even if it does, you probably want to change the wording of some of the phrases, so what to do? You could of course hit up the language files for the relevant module or the ones in cms and sapphire but you really don't want to touch these files if you can help it.
Continue reading... -
SnippetsManipulating every Nth item in a <% control %> loop
16 July 2009 | | | Supports v2.4, v2.3
TweetOften you will want to manipulate every nth item inside a <% control %> loop. For example say you had a gallery and you wanted every 3rd image to start on a new line, you need to be able to test each item from the template to see if it is divisible by 3 and should therefore have the clear CSS class added to it.
Continue reading... -
SnippetsGet errors e-mailed to you
24 March 2009 | | | Supports v2.4
TweetIf your site is live it means you are probably not getting errors reported in the view, so it's handy to have them emailed to you so you can still debug and also be notified if something is up.
Add this line to your mysite/_config.php file and expect some mail!
SS_Log::add_writer(new SS_LogEmailWriter('me@mydomain.com'), SS_Log::ERR);
Continue reading... -
TutorialsCreate a front end theme switcher
17 August 2009 | | | Supports v2.3
TweetSo you wanna make a demo site for your customers to show all your template skills in one site. A simple theme switcher can come in handy. It's quite easy to implement this.
First add two new functions to your Page_Controller class:
Continue reading... -
TutorialsCreating Previous and Next Buttons on a page
28 June 2009 | | | Supports v2.4, v2.3
TweetWhen you have a number of pages which follow on from one another you may find that asking a user to return to an index or select the next item from a side menu each time they want to progress is cumbersome. In this situation having previous and next buttons at the bottom of a page becomes very useful. In this snippet we'll add these buttons and also a counter to show the current page we are on and the total number of pages.
Continue reading... -
TutorialsEmbedding a contact form in a sidebar
28 October 2010 | | | Supports v2.4
TweetIn 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... -
BlogNovember Website of the Month: Vote Now!
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... -
NewbiesScreencast: Installing SilverStripe on a cPanel Host
7 November 2010 | | | Supports v2.4
Tweet
In this, the first SSbits Screencast I will take you though the process of Installing SilverStripe on your CPanel hosting enviroment. It's actually very simple once you know how and can be completed in a matter of minutes!
Continue reading... -
BlogNovember Site of the Month: The Winner!
20 November 2010 | |
Tweet
The Votes are in! And the winner of November's SSbits Site Of The Month is.....
Continue reading... -
BlogDecember Site of the Month: Vote now!
14 December 2010 | |
Tweet
Here are Decembers top 5 sites for you to vote on your favourite! Vote on...
Continue reading...