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
-
SnippetsClearing the Search field on click with jQuery
5 August 2009 | |
TweetAs with everything, it's attention to detail that makes great sites. One thing that really bugs me is when a site has a search box with the word 'search' inside it but which does not clear it self when clicked, meaning I have to clear it before I can search. Given it can be achieved with a few lines of jQuery, it's a real surprise how many sites fail to implement this, or that still use the 'onclick' inline javascript event.
Continue reading... -
SnippetsRemoving an Item From the Main CMS Menu
3 July 2009 | |
TweetIf you want to remove an item from the CMSTopMenu without making it inaccessible you can add this line to your _config.php file:
CMSMenu::remove_menu_item('SecurityAdmin');Continue reading... -
SnippetsResizing and Manipulating Images
22 March 2009 | | | Supports v2.4, v2.3
TweetYou can resize images from within the template very easily. But sometimes you need to resize it and just use the URL value, something you can't do by calling the resize on the variable directly (e.g. $Image.CroppedImage(200,200)). This is how we would create a cropped resize of it and still be able to use just the URL, allowing a custom <img> tag.
Continue reading... -
NewbiesBuilding a SilverStripe Theme from a Static Template
26 March 2009 | | | Supports v2.4, v2.3
Tweet
In this tutorial we are going to create a SilverStripe theme from a static template. While completing this tutorial, you will build a good foundation for using the SilverStripe templating language and be able to create themes with dynamic menus and content areas.
Continue reading... -
BlogVote Now! - August Site of the Month
15 August 2011 | |
Tweet
Here they are, 5 great SilverStripe sites for you to vote for your favourite!
Continue reading... -
SnippetsPreventing malicious SQL injections
12 March 2010 | | | Supports v2.4, v2.3
Tweet
PHP has a very shallow learning curve, it's free and anyone can have a go at making a website by following a few tutorials and implementing their experience with other languages. However, coding for the web can be a risky business, especially with dynamic websites that take some kind of user (or external) input and use that to get data from a database.
Continue reading... -
SnippetsUsing a Print Stylesheet
16 December 2009 | |
TweetOften people want to be able to print webpages without all the menus and graphics and with all the content fitting correctly onto a page. To do this you need to create a separate print stylesheet. It would look something like this:
Continue reading... -
SnippetsSpice up Your CMS Sitetree
27 August 2009 | | | Supports v2.4, v2.3
Tweet
So you have created your own page types, but they all look the same in your CMS site tree. Time to make them more recognizable!
This is quite easy, but it can make your site tree a lot more attractive.
Continue reading...
-
SnippetsCreating a Page Export Function
6 May 2009 | | | Supports v2.4, v2.3
TweetNeed to create an 'export' function for a page? Do it quickly and cleanly with HTTP::sendFileToBrowser. In your page controller, add a new action 'export':
Continue reading... -
BlogEnter now! - October Site of the Month
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... -
TutorialsLeaflet with SS3
19 November 2012 | | | Supports v3.0
Tweet
Leaflet is a good open-source alternative to Google Maps. I followed the instructions given in the Leaflet quick start guide (http://leafletjs.com/examples/quick-start.html), with a few adaptations to Silverstripe CMS. No custom icon, no additional layer, no customized css, no fancy feature : only the basic options to plot several locations on an interactive map.
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... -
BlogJune Site of the Month - Vote Now!
20 June 2011 | |
Tweet
Some fantastic and innovative sites this month, but which one is your favourite?
Continue reading... -
BlogMarch Site of the Month Winner!
30 March 2011 | |
Tweet
The Votes are in! And the winner of March's SSbits Site Of The Month is.....
Continue reading... -
BlogDecember Site of the Month Winner!
27 December 2010 | |
Tweet
The Votes are in! And the winner of December's SSbits Site Of The Month is.....
Continue reading...