Framework solution
To explore implementation details, we will look at an example that is simple enough to be shown in some detail. It is an application for a straightforward blog.
A simple blog application
Here, we'll look at a component that provides for a simple blog and could be further developed. Its essence is that it handles a piece of text, created using the site WYSIWYG editor by the administrator. The default blog page shows recent entries in reverse date order, often cut short by a code that splits the text between an introduction and the main text. Each entry links to the full text of an entry.
We shall see that writing a blog extension is made very much simpler by the various elements of the CMS framework that have been described in earlier chapters.
The database table for blog
The main table for the blog application is shown in the following screenshot. We can ignore some fields for our present purposes as they are designed to support further developments. The folderid is to allow...