SilverStripe 2.4 Module Extension, Themes, and Widgets: Beginner's Guide
-
Free ChapterPrinciples and Concepts
-
Customizing the Layout
-
Getting "Control" of Your System
- Getting "Control" of Your System
- Model View Controller (MVC)
- Structure of a Page
- Using the Controller
- Time for action—adding a print style
- Time for action—reducing HTTP requests for CSS files
- Time for action—add your own head tags
- Time for action—adding custom JavaScript in the Controller
- Time for action—removing JavaScript in the Controller
- Coding conventions
- Spam protecting e-mail addresses
- URL variables and parameters
- Adding an Intro page
- Summary
-
Storing and Retrieving Information
- Storing and Retrieving Information
- DBPlumber
- Time for action—installing DBPlumber
- From a database's point of view
- Adding custom fields to a page
- Time for action—putting content into the database
- More data types and their form fields
- Global custom fields
- How database values are fetched
- Taking the Model further
- Managing relations
- Time for action—linking pages together
- Summary
-
Customizing Your Installation
-
Adding Some Spice with Widgets and Short Codes
- Adding Some Spice with Widgets and Short Codes
- Widget or short code?
- Creating our own widget
- Time for action—embracing Facebook
- More widgets
- Have a go hero—Twitter
- Text parser
- Time for action—doing it "right"
- Caching
- Partial caching
- Time for action—caching
- Creating our own short code
- Time for action—how to find us
- Summary
-
Advancing Further with Inheritance and Modules
-
Introducing Forms
-
Taking Forms a Step Further
- Taking Forms a Step Further
- Searching our pages
- Time for action—adding search functionality to our page
- Customizing forms even further
- Saving data to the database
- Time for action—extending the member card form
- Field types overview
- Checking the e-mail address for uniqueness
- Time for action—checking the e-mail's uniqueness with Ajax
- Doing more with sessions
- Time for action—using the session in forms
- How to store members in the database
- Summary
-
Targeting the Whole World
- Targeting the Whole World
- Globalization in general
- Globalization in the CMS
- Time for action—configuring the CMS for globalization
- Globalization in the code
- Time for action—globalizing the intro page
- Time for action—translating the rent form
- Time for action—translating the rent form's JavaScript
- Getting the right content
- Time for action—switching the locale
- Where to go from here
- Summary
HTML, CSS, JavaScript, PHP, databases, frameworks, CMS, and many other fast-evolving technologies make up modern web-development. How can you effectively create stunning results without being limited by the ease of your tools? That's where SilverStripe CMS comes into play.
SilverStripe, with its simple and intuitive design, is easy to work with and offers numerous customization opportunities. But understanding the options available and getting hands-on with the development techniques is not a piece of cake and certainly not a delightful experience if you're relying on tutorials and documentation available online.
Silverstripe 2.4 Module Extension, Themes, and Widgets: Beginner's Guide takes you through designing catchy and flexible templates, adding powerful features effortlessly, integrating everything into an intuitive backend for easy administration in a simple way, and implementing nifty features with minimal effort. From the most basic to complex forms, from simple to sophisticated pages, you'll learn how to get the most out of your SilverStripe application. SilverStripe keeps everything nice and simple, but if you need to, you can extend and customize every part of it. Graphic examples illustrate the general principle of operation, gradually introducing the finer details needed to get professional results. Common requirements such as image galleries, site search, and more can be reused or extended to fulfill your needs.
The author's experience in designing and developing SilverStripe projects enables him to share insights on creating professional web applications in a clear and friendly way.
You will start off with creating your own templates – covering the general layout, while also taking search engine optimization into consideration. Next, you will look at the logic driving your web application, and the database. Using these basic concepts, you will start building more advanced features. These include the integration of Google Maps, Twitter and Facebook, image galleries, the handling of user-supplied information, your own full-text search, and more. Finally, you'll even translate and internationalize your project. All of this can be easily achieved with SilverStripe.
All of this and quite a bit more is covered by Silverstripe 2.4 Module Extension, Themes and Widgets: Beginner's Guide. Besides general principles, the focus is on reusable code – getting your project started in no time.
- Publication date:
- May 2011
- Publisher
- Packt
- Pages
- 368
- ISBN
- 9781849515009