Home - Your one stop SilverStripe learning resource
- Show all
- Site Tree
- Site of the Month
- Model Admin
- SilverStripe 3
16 July 2009 | | | Supports v2.4, v2.3Tweet
Often 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.4Tweet
If 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('email@example.com'), SS_Log::ERR);
TutorialsCreate a front end theme switcher
17 August 2009 | | | Supports v2.3Tweet
So 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...
28 June 2009 | | | Supports v2.4, v2.3Tweet
When 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...
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...
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 November 2010 | | | Supports v2.4Tweet
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...
20 November 2010 | |Tweet
The Votes are in! And the winner of November's SSbits Site Of The Month is.....Continue reading...
14 December 2010 | |Tweet
Here are Decembers top 5 sites for you to vote on your favourite! Vote on...Continue reading...
27 December 2010 | |Tweet
The Votes are in! And the winner of December's SSbits Site Of The Month is.....Continue reading...
30 March 2011 | |Tweet
The Votes are in! And the winner of March's SSbits Site Of The Month is.....Continue reading...
2 February 2011 | |Tweet
So after a bit of contreversy, the (community) Votes for January's Site of the Month are in! And the winner is.....Continue reading...
9 June 2011 | | | Supports v2.4, v2.3Tweet
Although Silverstripe has a mechanism for alternative configuration per environment, using the ConfigureFromEnv() method in your mysite/_config.php file, it has its limitations and I have often read people complaining about it. Here is a simple yet powerful alternative to using SilverStripe environment files.Continue reading...
4 October 2011 | |Tweet
Enter your site for a chance to be in the final 5 vote off! Voting will begin on the 12th of October.Continue reading...
16 May 2012 | |Tweet
It's that time again, vote for your favourite SilverStripe site!