Home - Your one stop SilverStripe learning resource
- Show all
- Site Tree
- Site of the Month
- Model Admin
- SilverStripe 3
7 October 2011 | | | Supports v2.4Tweet
With only the standard Broken Links Report, the report admin area in Silverstripe's CMS can feel a bit underused. In this tutorial I'm going to take a look at how you can add a custom report into the report admin section of the CMS which can make keeping track of a variety of statistics a little more straightforward.
To keep this simple I am going to give users the ability to assign a colour to each page on the site and then generate a report of any pages on the site that have been assigned a particular colour.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...
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...
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...
9 September 2011 | |Tweet
The Votes are (finally) in! And the winner of September's SSbits Site Of The Month is.....Continue reading...
15 August 2011 | |Tweet
Here they are, 5 great SilverStripe sites for you to vote for your favourite!Continue reading...
2 August 2011 | | | Supports v2.4Tweet
Sometimes, in ModelAdmin, we want to be able to have a different default sort.
Specifically, like in cases where a has_one is the preferred sorting. For example, we have a warehouse. In our DataObjects, we have the object "Lanes", has_many Products. And we have Products, has_one "Lanes". When we're browsing our Products in the admin, we want to have them default sorted by their Lane, not their name.
Just saying default_sort = 'Lanes'; sadly does not do the job. It'll give you reddish-screens and stuff. Which is not what we like.
Here's a (quite simple actually) solution.Continue reading...
12 July 2011 | | | Supports v2.4Tweet
Most search results I have seen with Silverstripe just return the Summary of the page or the FirstSentence. I have knocked up a quick way to show a sentence from the page that contains the search term and even highlights it for you.Continue reading...
4 July 2011 | |Tweet
The Votes are in! And the winner of July's SSbits Site Of The Month is.....Continue reading...
20 June 2011 | |Tweet
Some fantastic and innovative sites this month, but which one is your favourite?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...
6 June 2011 | | | Supports v2.4Tweet
For a while now the only printed documentation available for SilverStripe has been the official book which, although excellent if you are willing to put the time into completing it, is now slightly outdated having been written for SilverStripe v2.3. Enter a new book written by Phillip Krenn and published by Packt; SilverStripe 2.4 - Module Extension, Themes and Widgets. Despite the slightly misleading title, the book takes you through the entire process of building a relatively complex site for a local bar by extending the core functionality as well as using various Modules and Widgets along the way.Continue reading...
2 June 2011 | |Tweet
The Votes are in! And the winner of June's SSbits Site Of The Month is.....Continue reading...
31 May 2011 | | | Supports v2.4, v2.3Tweet
The Silverstripe blog module is great and its made its way into many of my Silverstripe sites. However, for most designers it is missing one vital aspect; an image field for each post. In this tutorial I'm going to show you how to quickly add an image to the blog module without editing any of it's files, allowing hassle free upgrading in future.Continue reading...
20 May 2011 | |Tweet
Here we have 5 excellent websites all developed in SilverStripe. But which one is best? You decide!Continue reading...