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
-
TutorialsWorking with Site Config
19 April 2010 | | | Supports v2.4
Tweet
One of the great new features of 2.4 is the introduction of a Site Config page. This allows you to put all of those fields which are not page related, such as The sites title, root access permissions and even the current theme. The SiteConfig class is simply a dataobject and so can easily be extended to include fields, relationships and functions which you can then access from anywhere in your site.
Continue reading... -
SnippetsGetting items from a has_many or many_many relation
7 October 2010 | | | Supports v2.4, v2.3
TweetHave 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... -
TutorialsPaginating a filtered DataObjectSet
25 October 2010 | | | Supports v2.4
TweetIf you have ever tried to paginate a DataObjectSet that has been customised since fetching it from the database you will have descovered that it simply doesn't work. This short tutorial provides some great code to resolve this problem and paginate to your hearts content!
Continue reading... -
TutorialsQuick & Easy Google Analytics with SiteConfig
24 November 2010 | | | Supports v2.4
Tweet
Many people need a way to monitor their website, and while it's pretty easy to add the code to a SilverStripe template, or even the basic Page_Controller, I thought I would show how I modularized and made it accessible from the SiteConfig area of the CMS.
Continue reading... -
TutorialsAdding an image to a blog post using Decorators and the SilverStripe Blog Module
31 May 2011 | | | Supports v2.4, v2.3
TweetThe 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... -
SnippetsSet the Redirect after a successful Member Login
31 May 2010 | | | Supports v2.4, v2.3
TweetThe 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... -
SnippetsAutomatically ?flush when in 'dev' mode
15 April 2010 | | | Supports v2.4, v2.3
TweetOften 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... -
TutorialsCreate an AJAX Auto-Complete Member Search with SilverStripe and jQuery
10 May 2011 | | | Supports v2.4
Tweet
For ages now I have been meaning to figure out how to get an AJAX autocomplete field working with SilverStripe Objects. So when I found this great jQuery Autocomplete Plugin, I thought now would be a good time. As always SilverStripe provides all the tools necessary to complete the task without too much hassle.
Continue reading... -
TutorialsCustom Login Form with Group Based Redirection
7 April 2009 | | | Supports v2.4, v2.3
TweetIn this tutorial we are going to create a system that allows the Admin to decide which (front-end) page a group of users are redirected to after login. This will be defined via a TreeDropdown for each group in the security section, and can also be set to send them to the admin area via a checkbox.
Continue reading... -
Blog10 Super Useful SilverStripe Documentation Pages
11 April 2009 | |
TweetSince I started learning SilverStripe I have come across a number of very useful documentation pages which were not very easy to find (at least not as easy as they could be). So here is a list of 10 official documentation pages which I always find myself referring back to.
Continue reading... -
SnippetsRemove theme selector from SiteConfig
15 October 2010 | | | Supports v2.4
Tweet2.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 decorator
Continue reading... -
BlogVote Now! - January Site of the Month
19 January 2011 | |
Tweet
So here we are, after a slightly longer than usual wait: The January 2011 Site of the Month Finalists! There are some really great sites this month so vote on your favourite now!
Continue reading... -
TutorialsAdd flexible MetaTags control to Pages
15 January 2011 | | | Supports v2.4
TweetWhen you display DataObjects as if they are a single Page or use a Page Action to display a different view of the same Page, by default your MetaTags are the same as the tags you entered in the CMS.
One way to change the MetaTags dynamicly is to add a lot of template controls to display different MetaTags for each view, but you can get a lot more flexibility by overriding the SiteTree MetaTags function in your Page_Controller.
Continue reading... -
TutorialsCustom sorting in the CMS SiteTree
14 February 2011 | | | Supports v2.4, v2.3
Tweet
Ever wanted to sort some parts of the SiteTree? Well now you can!
Continue reading... -
SnippetsMaking the Tree Tools sticky for easier editing on large sites
22 March 2011 | | | Supports v2.4
Tweet
If you have ever had to edit content on a SilverStripe site with lots of pages, you will have noticed how furstrating it is to have to keep scrolling back up the tree panel to create a page or enable drag and drop re-ordering. Well, here is a handy bit of CSS you can add to keep the tools static, even as you scroll down the tree.
Continue reading...