What is SilverStripe?

Posted by Stripes the Zebra on 24 March 2012

A effective yet flexible content management system or CMS for any website that is integrated with a framework for application is SilverStripe. It also integrates themes, widgets and even silverstripe modules which becomes one of the cores of one's website. The very good thing is that Silverstripe is open source and is compatible with most modern day website formats such as php5 and mysql based systems that allows techies and newbies save precious time and nerves as well! The simple and basic approach of the Silverstripe modules are simply understood by non-technical ‘webmasters’ for content management.

Silverstripe modules are typically based on a framework referred to as Sapphire and as such everything is built around it. Silverstripe modules are typically a collection of templates, classes including a variety of JS along with other resouces. Some of these Silverstripe modules are readily offered for download on the silverstripe website or in case you believe you happen to be savvy enough, you'll be able to actually produce one on your own, depending on your needs.

You can definitely build subclasses like a SiteTree or even a page class. Now, a built-in or pre-built class can be replaced by your own class with the use of Object::YourOwnClass(). You are able to also make use of the decorator to adjust the behavior of the made class, you'll be able to also location additional director rules in _config.php. You are able to also produce Silverstripe modules for a number of application which could be utilized as an extension like plug in or a widget perhaps.

Installation of Modules

Now before considering about doing your own Silverstripe modules you'll would like to visit the website to take into account modules which are already offered for you. You are able to download and install the modules on your page, the following are the steps:

1. Download the Module and extract the files. Now sometimes whenever you extract the files there's a version variety included in the prefix or suffix folder, you should right the folder name to make it work. For example, you downloaded a modules-image_gallery-r201 you need to make certain to rename your folder to image_gallery.

2. Copy the folder you extracted on the root folder of one's Silverstripe installation. Remember that Silverstripe modules are usually saved over a root directory of the installation.

3. Open your well-known browser and type in yoursitename/dev/build/. Don’t forget that if you are working over a live website make certain which you have logged to the CMS before copying the Silverstripe modules on the silverstripe root directory before running /dev/build/

4. That’s it, your done. Your Silverstripe module has been installed and ready for use.

Creating Your personal Modules

Of course in case you have the technical know how, or would like to try your hand at it, you'll be able to actually produce your own Silverstripe modules.

It's actually a good method to make use of abstract codes and templates across varying projects. Should you would like to add generic functions for your website like maybe a forum or an e-commerce package or even a blog all your own, you'll be able to do this by doing a root directory, this ought to be at the exact same level as the “sapphire” or “cms” directory, two of the core modules for functionality and templating for the default install of the system. After doing your newest root folder add an _config.php, in case you didn’t then Silverstripe will not read the Silverstripe Module you've created. Within your new module directory follow the directory structure guidelines.

Submitting Your SilverStripe Modules

If you desire to submit a module you've produced you'll be able to simply do that but of course your work need to adhere to certain code qualities along with other conventions, documentations and release updates. It's your responsibility as the creator of the silverstripe modules.

It’s most effective to keep your module as generic as you possibly can. If you’re going to build a forum module then your member’s area shouldn’t include fields like “YourLiveJournalName” or “Games You Like To Play”. Individual users can merely add these fields with the use of a sub-class to your class or by decorating the fields into it.

Whether you download your SilverStripe modules from the website or produce one on your own, these modules permit for higher functionality and aesthetic quality of one's website.