Displays month and year options on the calendar datefield

assets/Uploads/_resampled/SetWidth150-dtpicker1.png

Silverstripe has a datefield. This field is used to fill the dates on the form. In version 2.4 by default, this field is only a text field to fill in the date format as "mm / dd / yyyy". But this field can be custom to display the calendar of the jquery javascript-UI. How...

Creating Simple Page Counter

assets/Uploads/_resampled/SetWidth150-counting.gif

Page counter sometimes we need to know the number of the many people who read a page on our website. From page counters, we can also get information about the pages most often read by people. On silverstripe there is no page counters function, so we have to create your own. To create a page...

Creating Paging (per page) for Query Results

assets/Uploads/_resampled/SetWidth150-paging.png

There's one of my friends asking how to create paging in query results on silverstripe[how-to-querying-pages-in-silverstripe/]? It is to display the query results we must make the results is limited per page. Paging is the term used to regulate the number of query results are displayed per page. If not using the paging all the query results...

HOW TO Querying Pages in Silverstripe

assets/Uploads/_resampled/SetWidth150-SQL-Query.jpg

Silverstripe uses a class called DataObject to interact with databases. We could say that every interaction with the database will be performed by the DataObject. For example we can do a query for any data we want on the Silverstripe with this object. In making a new page[creating-a-new-page-type/] type called ArticlePage, you may be wondering, "How...

Image with Fixed SIze

assets/Uploads/_resampled/SetWidth150-Resize-Image.png

If we read the documentation silverstripe about the image, we will get the reference method used to resize the image on silverstripe. But there are questions on the documentation. How do I change the image size by specifying the width and height of the image from the template file? The trick is with SetSize method...

Creating Flash Video Object on Silverstripe

assets/Uploads/_resampled/SetWidth150-adobe-flash-video-flv-icon.png

One time ago, I was ever asked to do a web project in which there is a web page containing the video look like on youtube. The video file should be able to upload by their self. Later after the video uploaded, it have to be converted automatically to the .flv format which is...

Image Object on Silverstripe

assets/Uploads/_resampled/SetWidth150-picture-clip-art2.png

If you read a post about Creating a New Page Type[creating-a-new-page-type/], I created a new type of pages that contain the image object. If we see inside of Class Articlepage there is a definition: public static $has_one = array( 'Picture' => 'Image' ); The meaning of the definition is each Articlepage will have a field of Image...

Creating Contact Page

assets/Uploads/_resampled/SetWidth150-Contact-Page.png

At each web site, contact page (Contact Us) is one of the pages needed for site visitors to contact/comment to the creator's web. From the business side of this page must be made to accommodate the client desires. From this page also a business transaction can be starts. In silverstripe, we can create a contact...

Installing Mod_Rewrite on Apache

assets/Uploads/_resampled/SetWidth150-apachelogo.png

Mod_rewrite is used to change the URL using the commands rewriting engine (based on regex parser) is requested on the fly (directly). To use this module the Apache minimum version required is Apache 1.2 or latest version. You can install as a module mod_rewrite on your Apache webserver. Before you install this module first checks...

Creating a New Page Type

assets/Uploads/_resampled/SetWidth150-page-types.gif

The first time when we install silverstripe, silverstripe has provided some type of standard pages that can we use. These page types are: *Page*: this is the type of standard pages for each page shown. *ErrorPage*: This page is a page to display a customizable error conditions. For example we can use this type...