MODx Web Development - Second Edition


MODx Web Development - Second Edition
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.39
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 288 pages [ 235mm x 191mm ]
Release Date : February 2011
ISBN : 1849513481
ISBN 13 : 9781849513487
Author(s) : Antano Solar John
Topics and Technologies : All Books, Web Development, Content Management (CMS), Open Source, Web Development

Table of Contents

Preface
Chapter 1: What is MODx?
Chapter 2: Getting Started
Chapter 3: MODx Basics
Chapter 4: Templating
Chapter 5: Authentication and Authorization
Chapter 6: Content Aggregation
Chapter 7: Creating Lists
Chapter 8: Snippets
Chapter 9: PHx
Chapter 10: Simple Recipes
Chapter 11: Creating Snippets
Chapter 12: SEO, Deployment, and Security
Chapter 13: Plugins and Modules
Chapter 14: MODx Revolution
Index
  • Chapter 1: What is MODx?
    • Content management system
      • Manage content
      • Content management rules
      • Define content
    • An application framework
    • Web development methodologies
      • Old school—conventional three tiers
        • Advantages of the conventional three tiers
        • Disadvantages of the conventional three tiers
      • Templating
        • Advantages of templating
        • Disadvantages of templating
        • Advantages of application frameworks
        • Disadvantages of application frameworks
      • Content management systems
        • Advantages of content management systems
        • Disadvantages of content management systems
    • Why MODx?
      • Why a CMS?
      • Why an application framework?
      • So, why MODx?
    • Overview of the book
    • Summary
    • Chapter 2: Getting Started
      • Setting up the development environment
        • Prerequisites
          • Linux
          • Windows
          • MAC
        • Verification
      • Downloading MODx
        • Installing MODx
          • Creating a database
          • Starting the installation
          • Installation status and diagnostics
      • Documentation
        • Official documentation
        • Community-driven documentation
        • Combined
      • Getting support
        • Web forums
        • IRC
      • Summary
      • Chapter 3: MODx Basics
        • Site configuration
          • Configuring the site
          • Default Manager interface page
          • Noticing and fixing errors and warnings
        • Changing the name of the site
        • The basic element of MODx: Resources
          • Containers
        • MODx Manager interface
        • Using the HTML editor
        • Creating the Front Page
        • DocManager module
        • Resources revisited
          • Editing documents
          • Resource properties
            • General tab
            • Settings
            • Access permissions
        • Summary
        • Chapter 4: Templating
          • Changing the template of a resource
          • Creating a new template and giving it a category
            • HTML
            • CSS
            • Steps to create the new template
          • Making the home page use the created template
          • Choosing a default template
          • Introducing template variables
          • Modifying the template to add dynamic behavior
            • Changing existing templates
          • Template variables
            • Creating template variables
            • Template variable values
            • Data source binding
            • Widgets
          • Creating a blog site
            • Using a Snippet
            • Creating a resource
            • Blog entry
          • Snippet and chunk basics
            • Generating output
          • Using a custom form for the Post a Blog! page
            • HTML for the custom blog form
            • Steps to create a chunk
            • Using a chunk as a form template
            • Checking the Post a Blog! page
          • Rich text editor for the blog content
            • Creating the template variable
            • Chunk and template variable
            • NewsEditor and the Rtcontent field
          • Summary
          • Chapter 5: Authentication and Authorization
            • Creating a web user
              • Other user properties
            • Add the login snippet
            • Resource group for friends
            • Restricting access for a resource
              • User group: Resource group
              • User: User group
            • Post moderation
              • Creating a role
              • Creating a Manager user
              • Checking the new role
            • User registration
              • Showing a signup form
              • Joining a default group
              • Link the signup form in the log in snippet
            • Snippets and authorization
              • NewsPublisher and authentication
            • Summary
            • Chapter 6: Content Aggregation
              • Ditto
                • More flexibility with parameters
                • Aggregated data in a template
                • Theming MODx—chunks and placeholders
                • Introducing tagging
                  • Creating a template variable to hold the category
                  • Assigning resources to a category
              • XML formats
                • Machine-readable formats and readers
                • Readers
                • Ditto and XML formats
                  • Creating RSS views for each category
                • Filtering
                  • Multiple clauses
                • Extenders
              • Summary
              • Chapter 7: Creating Lists
                • Menu details in document properties
                • Authentication and authorization
                  • Getting to know WayFinder
                • Theming
                  • Creating a simple menu
                  • Nested menus
                  • Changing the name in the menu
                  • Doc Manager
                    • Removing pages from the menu
                • More theming using chunks
                  • Breadcrumb navigation
                • Multiple calls
                • Summary
                • Chapter 8: Snippets
                  • Working of snippets
                  • Finding snippets
                  • Learning about snippets
                    • Jot with the minimal configuration
                    • Snippet parameters
                    • Placeholders
                  • Using non-bundled snippets
                    • Installing a snippet
                      • Downloading and extracting a snippet
                      • Adding a snippet
                      • Copying the required files
                      • Using the snippet
                      • Snippet without dependent files
                    • Snippeting skills
                  • Summary
                  • Chapter 9: PHx
                    • PHx in action
                      • Installing PHx
                      • Adding Family and Friends resources
                        • Template Code
                    • The PHx notation
                      • Simple usage
                      • Conditional statements
                      • Using the PHx placeholder
                      • Multiple conditions
                    • Summary
                    • Chapter 10: Simple Recipes
                      • Forums
                        • Installing SMF
                        • Installing the SMF module
                      • Image gallery
                      • E-mailing from forms
                      • User profiles
                        • Installing WebLoginPE
                        • Edit profile
                        • List users and view their profiles
                        • Link to edit a profile
                      • Similar posts
                      • Summary
                      • Chapter 11: Creating Snippets
                        • Learning to create a snippet
                          • Returning output
                          • Returning placeholders
                          • Processing a chunk
                          • Using parameters
                        • MODx API
                          • DBAPI
                            • $MODx->db->select
                            • $MODx->db->getRecordCount
                            • $MODx->db->makeArray
                        • Fortunes
                          • Creating the table
                          • Code for fortunes
                          • Testing the snippet
                          • Chunks, placeholders, and parameters
                          • Using files
                        • Summary
                        • Chapter 12: SEO, Deployment, and Security
                          • SEO
                            • Search engine-friendly URLs
                            • Meta tags and keywords
                            • Site map
                            • XHTML Strict
                            • Other SEO tweaks
                              • Using CSS to control the layout
                              • Content first
                              • Hidden text
                              • Descriptive text
                              • Alternative text
                              • Cross links
                              • Tracking
                              • Inbound links
                              • Quality content
                          • Deployment
                            • Filesystem
                              • FTP
                              • SFTP
                              • WebDAV
                            • Database
                              • Exporting
                              • Importing
                              • Configuration file
                            • Configurations
                          • Security
                            • File permissions
                            • Installer
                            • Writable configuration file
                            • Captcha
                            • mod_security
                            • Unused files
                            • Manager configurations
                              • User tab
                              • File Manager tab
                          • Summary
                          • Chapter 13: Plugins and Modules
                            • Plugins and events
                              • Using an existing plugin
                                • Configuration
                                • System events
                                • Exploring other plugins
                              • Using custom plugins
                                • Learning about the plugin
                              • Creating plugins
                              • Event-triggering snippets
                            • Modules
                              • Using modules
                                • Creating a module
                                • Executing a module
                                • Module's Manager interface
                                • Dependent plugins
                              • Learning to use custom modules
                            • Summary
                            • Chapter 14: MODx Revolution
                              • Why Evolution, why Revolution…
                              • What is similar?
                              • What to expect?
                              • Tags
                              • A peek into Revolution
                              • Core technology changes
                                • xPDO
                                • Sencha and Smarty
                              • Join the community
                              • Summary

                              Antano Solar John

                              Antano Solar is a techie to the core—a tech evangelist who is passionate about using technology to revolutionize the learning experience! Antano has contributed to the open source community in terms of documentation, code, and support, with a variety of platforms based on languages such as PHP, Perl, Lisp, Python, and Ruby. He loves to share his tech excitement with fellow techies and non-techies, and does so through publishing papers, books, and delivering seminars at colleges, universities such as the IIT, and corporate tech events. He has published a paper on enhancing wireless networks in an IEEE Journal. His paper on an engine helping machines understand objectives by meta-modeling, using Neurolinguistic Programming principles and Deep Structure, is considered a landmark. An avid hacker, Antano has won two Yahoo hack-day awards. He recently won the award for developing a Hybrid Search Engine from scratch in 24 hours that uses Machine Intelligence and Social Intelligence to identify, search, and present the information in the required format. Professionally, until recently, Antano was a Consultant and a Trainer providing IT solutions and sessions on VoIP, Networks and Software Plaforms, and Languages. He is currently the Chief Technology Officer at NuVeda Learning. In his current role, he is responsible for the development and deployment of Learning Management Systems that are used by large MNCs globally. He also plays the role of a Chief Architect in the research and development of technologies related to the understanding and measuring of Learning. He is excited by the challenges of using complex technologies such as Artificial Intelligence and Natural Language Processing. Occasionally, when Antano needs to take a "Tech" break, he likes to train and tell stories!
                              Sorry, we don't have any reviews for this title yet.

                              Code Downloads

                              Download the code and support files for this book.


                              Submit Errata

                              Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                              Sample chapters

                              You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                              Frequently bought together

                              MODx Web Development - Second Edition +    Ext JS 4 Web Application Development Cookbook =
                              50% Off
                              the second eBook
                              Price for both: €33.30

                              Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                              What you will learn from this book

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

                              A step-by-step logical guide to building a complete dynamic website using MODx

                              Approach

                              This book is an example-driven tutorial, which will take you from the installation of MODx through to configuration, customization, and deployment. Step-by-step instructions will enable you to build a fully-functional, feature-rich website quickly and without the knowledge of any programming language.

                              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.

                              Code Download and Errata
                              Packt Anytime, Anywhere
                              Register Books
                              Print Upgrades
                              eBook Downloads
                              Video Support
                              Contact Us
                              Awards Voting Nominations Previous Winners
                              Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                              Resources
                              Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software