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...