Free Sample
+ Collection

MODx Web Development - Second Edition

Antano Solar John

Build dynamic websites with MODx PHP application framework and CMS
RRP $23.99
RRP $39.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 139781849513487
Paperback288 pages

About This Book

  • Build a complete, feature-rich website using MODx
  • Covers detailed theory from the basics to practical implementation
  • Learn the most common web requirements and solutions, and build a site in the process
  • Simple, step-by-step instructions detailing how to install, configure, and customize MODx

Who This Book Is For

This book is ideal for newcomers to MODx. Both beginners and experienced web developers will benefit from this comprehensive guide to MODx. No knowledge of PHP programming or any templating language is needed, but the more advanced chapters towards the end of the book will allow more confident developers to extend their applications even further by creating their own snippets.

Table of Contents

Chapter 1: What is MODx?
Content management system
An application framework
Web development methodologies
Why MODx?
Overview of the book
Chapter 2: Getting Started
Setting up the development environment
Downloading MODx
Getting support
Chapter 3: MODx Basics
Site configuration
Changing the name of the site
The basic element of MODx: Resources
MODx Manager interface
Using the HTML editor
Creating the Front Page
DocManager module
Resources revisited
Chapter 4: Templating
Changing the template of a resource
Creating a new template and giving it a category
Making the home page use the created template
Choosing a default template
Introducing template variables
Modifying the template to add dynamic behavior
Template variables
Creating a blog site
Snippet and chunk basics
Using a custom form for the Post a Blog! page
Rich text editor for the blog content
Chapter 5: Authentication and Authorization
Creating a web user
Add the login snippet
Resource group for friends
Restricting access for a resource
Post moderation
User registration
Snippets and authorization
Chapter 6: Content Aggregation
XML formats
Chapter 7: Creating Lists
Menu details in document properties
Authentication and authorization
More theming using chunks
Multiple calls
Chapter 8: Snippets
Working of snippets
Finding snippets
Learning about snippets
Using non-bundled snippets
Chapter 9: PHx
PHx in action
The PHx notation
Chapter 10: Simple Recipes
Image gallery
E-mailing from forms
User profiles
Similar posts
Chapter 11: Creating Snippets
Learning to create a snippet
Chapter 12: SEO, Deployment, and Security
Chapter 13: Plugins and Modules
Plugins and events
Chapter 14: MODx Revolution
Why Evolution, why Revolution…
What is similar?
What to expect?
A peek into Revolution
Core technology changes
Join the community

What You Will Learn

  • Set up a working platform for developing websites with MODx
  • Edit resources on your website, place them within containers, and change their properties using MODx Manager Interface
  • Create, edit, and manipulate resources on your website, and manage their configurations using the TinyMCE editor
  • Edit and modify resources without having to know HTML using the HTML editor (WYSIWYG editor)
  • Build your site to include user registrations, logins, and user types, and set rules on who can do what
  • Modify the NewsEditor snippet to allow posts from only the authenticated users
  • Create aggregation and feeds and learn how to create feeds for separate categories using a snippet called Ditto
  • Create lists of all the resources dynamically in MODx and learn how to present them as menus using the Wayfinder snippet
  • Install and use snippets, and learn to navigate their custom functionalities
  • Learn the powerful templating language PHx to extend logic to templates
  • Learn to create your own snippet for unique functionalities

In Detail

MODx is a content management system and PHP web application framework rolled into one. With the ease of a CMS and the extendibility of a framework, MODx allows you to develop professional-looking, intricate websites with its easy-to-use interface and flexible architecture. MODx provides reusable code fragments called snippets, most of which are so generic that, without any modification, they can serve multiple functionalities. The generic nature of the snippets makes it possible to get the perfect customization that is so hard in other CMS.

This book will get web developers up-and-running with MODx. With step-by-step examples and illustrative screenshots, you will be guided through installation, configuration, and customization. By the end of the book, you will have created a powerful, dynamic website by using the individual elements of MODx, without the need for programming know-how.

Starting with a walk-through of how to install MODx, you will quickly learn how to develop your site without having to use any programming language. Logical, step-by-step instructions will show you how to create your own unique site by adding and editing documents using the inbuilt TinyMCE editor. You will change the look and feel of your site by creating your own templates using HTML, CSS, and widgets. By following the example of a blog site, you will learn how to extend your templates to allow rich user interactions through comments, posts, and forms. The book teaches a few code snippets such as Ditto and Wayfinder in detail. These powerful and flexible snippets will enable you to add multiple functionalities to your site. The book will also introduce you to many more snippets that will help you build some of the commonly required web functionalities such as forums and image galleries. You will manage your users with authentication and authorization and make your site user-friendly with user groups, forums, and the use of PHx notations to embed logic in templates.

Through following this easy-to-use, step-by-step guide you will, by the end of the book, have a fully functional, feature-rich MODx site with professional-looking, dynamic web pages that are totally customizable.


Read More