Details zum E-Book

MODx Web Development. Build dynamic websites with MODx PHP application framework and CMS

MODx Web Development. Build dynamic websites with MODx PHP application framework and CMS

Antano Solar John, Ryan Thrash

E-book
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.
  • MODx Web Development
    • Table of Contents
    • MODx Web Development
    • Credits
    • About the Author
    • About the Reviewers
    • www.PacktPub.com
      • Support files, eBooks, discount offers and more
        • Why Subscribe?
        • Free Access for Packt account holders
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Errata
        • Piracy
        • Questions
    • 1. What is MODx?
      • Content management system
        • Manage content
        • Content management rules
        • Define content
      • An application framework
      • Web development methodologies
        • Old schoolconventional three tiers
          • Advantages of the conventional three tiers
          • Disadvantages of the conventional three tiers
        • Templating
          • Advantages of templating
          • Disadvantages of templating
            • Application frameworks
          • 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
    • 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
    • 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
    • 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
    • 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
    • 6. Content Aggregation
      • Ditto
        • More flexibility with parameters
        • Aggregated data in a template
        • Theming MODxchunks 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
    • 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
          • Modules Manager interface
          • Dependent plugins
        • Learning to use custom modules
      • Summary
    • 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
    • Index
  • Titel: MODx Web Development. Build dynamic websites with MODx PHP application framework and CMS
  • Autor: Antano Solar John, Ryan Thrash
  • Originaler Titel: MODx Web Development. Build dynamic websites with MODx PHP application framework and CMS
  • ISBN: 9781849513494, 9781849513494
  • Veröffentlichungsdatum: 2011-02-23
  • Format: E-book
  • Artikelkennung: e_3cem
  • Verleger: Packt Publishing