Building a Content Management System with Prototype
The Prototype library has grown in popularity among JavaScript programmers because of the powerful features that come bundled with it. In this set of three articles, you'll learn how to use this versatile framework for building a content management system. This first part will deal with the creation of the front end of the CMS.
Building a Content Management System with Prototype - Adding the structural markup (Page 3 of 4 )
In accordance with the concepts that were deployed in the previous section, we need to create the (X)HTML markup that belongs to this application. Therefore I have included the following code listing, which defines in a clear fashion the structural markup that comprises this Prototype-based content management system.
Here is how the (X)HTML markup of this application looks:
As shown previously, the structural markup of this CMS is in fact very easy to grasp and code. Essentially, it's composed of two primary DIVs. The first container will be responsible for housing the full list of articles published in the system, and the second one will display the corresponding insertion web form, which will be used to add new articles. Pretty simple, right?
Well, at this stage you hopefully learned how both the CSS styles and the structural markup of this CMS application were properly created. In the upcoming section I'm going to integrate the two respective modules, completing the client-side code corresponding to the content management system.
Sounds fair to you? Okay, to see how this educational journey continues, click on the link below and keep reading.