Free Sample
+ Collection

CMS Design Using PHP and jQuery

Kae Verens

Build and improve your in-house PHP CMS by enhancing it with jQuery
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849512527
Paperback340 pages

About This Book

  • Create a completely functional and a professional looking CMS
  • Add a modular architecture to your CMS and create template-driven web designs
  • Use jQuery plugins to enhance the "feel" of your CMS
  • A step-by-step explanatory tutorial to get your hands dirty in building your own CMS

Who This Book Is For

If you want to see jQuery in action with PHP and MySQL code, in the context of a real application, this is the book for you. It is written for developers who have written multiple scripts or websites, and want to know how to combine them all into one package that can be used to simplify future scripts and sites. The book is aimed at people who understand the basics of PHP and jQuery, and want to know how they can be used effectively to create a large project that is user-friendly and flexible.

Table of Contents

Chapter 1: CMS Core Design
The CMS's private and public areas
Files and databases
Hello World
Chapter 2: User Management
Types of users
Database tables
Admin area login page
Logging in
Logging out
Forgotten passwords
User management
Chapter 3: Page Management — Part One
How pages work in a CMS
Listing pages in the admin area
Administration of pages
Chapter 4: Page Management — Part Two
Saving the page
Creating new top-level pages
Deleting pages
Rich-text editing using CKeditor
Chapter 5: Design Templates — Part One
How do themes and templates work?
Chapter 6: Design Templates — Part Two
Adding jQuery to the menu
Chapter 7: Plugins
What are plugins?
Example plugin configuration
Enabling plugins
Handling upgrades and database tables
Custom admin area menu
Adding an event to the CMS
Adding tabs to the page admin
Chapter 8: Forms Plugin
How it will work
The plugin config
Page types in the admin
Adding custom content forms to the page admin
Defining the form fields
Showing the form on the front-end
Handling the submission of the form
Exporting saved data
Chapter 9: Image Gallery Plugin
Plugin configuration
Page Admin tabs
Initial settings
Uploading the Images
Front-end gallery display
Settings tab
Grid-based gallery
Chapter 10: Panels and Widgets — Part One
Creating the panel plugin
Registering a panel
The panel admin area
Creating the content snippet plugin
Adding widgets to panels
Showing panels on the front-end
Chapter 11: Panels and Widgets — Part Two
Widget forms
Chapter 12: Building an Installer
Installing a virtual machine
Creating the installer application
Checking for missing features
Adding the configuration details

What You Will Learn

  • Create your own plugin architecture
  • Manage users, using e-mail verification, hashes, and captchas
  • Enhance your administration forms using jQuery
  • Test your system using virtual machines
  • Write upgrade scripts that automatically patch your system
  • Manage multiple site design templates using Smarty
  • Learn how easy it can be to extend your own CMS from the multiple plugins that are provided and explained
  • Learn how panels work, and use them to make flexible drag-and-drop layouts with widgets
  • Create an installer, using virtual machines for the test environment of your CMS


In Detail

PHP and JQuery are two of the most famous open source tools used for web development. This book will explain how to leverage their power by building a core CMS, which can be used for most projects without needing to be changed, and how to add custom plugins that can then be tailored to the individual project.

This book walks you through the creation of a CMS core, including basic page creation and user management, followed by a plugin architecture, and example plugins. Using the methods described in this book, you will find that you can create distinctly different websites and web projects using one codebase, web design templates, and custom-written plugins for any site-specific differences. Example code and explanation is provided for the entire project.

This book describes how to use PHP, MySQL, and jQuery to build an entire CMS from the ground up, complete with plugin architecture, user management, template-driven site design, and an installer.
Each chapter walks you through the problems of various aspects of CMS design and their solutions, with example code and explanation provided for the chosen solutions.

A plugin architecture is explained and built, which allows you to enhance your own CMS by adding site-specific code that doesn't involve "hacking" the core CMS.
By the end of the book, you will have developed a full CMS, which can be used to create a large variety of different site designs and capabilities.


Read More