Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
MODx Web Development - Second Edition
MODx Web Development - Second Edition

MODx Web Development - Second Edition: Build dynamic websites with MODx PHP application framework and CMS

eBook
$17.99 $25.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

MODx Web Development - Second Edition

Chapter 2. Getting Started

This chapter takes you through setting up and starting MODx. It also refers to the online documentation resources and discusses how to get community help. It sets the base for developing the example applications in this book.

Setting up the development environment


This section of the book will help you to install MODx and verify that it is working.

Prerequisites

The following is the list of software packages that have to be installed in order for MODx to work. If you have them installed and configured already, you can skip this section. Otherwise, you can read the instructions that are specific to your operating system.

  • PHP

  • MySQL

  • Apache

MODx is built using PHP, which stands for PHP Hypertext Processor. PHP is a server-side language and we need a web server that can interpret PHP. We are using Apache, which is the most widely used web server for this. Apache is not really a prerequisite; any web server that can interpret PHP, such as IIS or Nginx, would do.

Note

MODx uses MySQL as the database server.

For the sake of simplicity and consistency of settings and configurations, throughout the book, we will be using a package called XAMPP , which bundles Apache, PHP, MySQL, and various tools to get you easily started...

Downloading MODx


MODx is available for download from the site http://MODxcms.com/downloads.html. Make sure that you download MODx Evolution and not MODx Revolution. MODx is distributed under the GNU General Public License which, on a lighter note, means that you can download it for free, install it on as many sites as you like, and even modify and redistribute it under a new name. For more information about the license, refer to http://MODxcms.com/license.html.

Like most open source projects, MODx has a stable release and a preview beta release. The stable release is what has been tested and made ready for production. For any production use, you must be using the stable version. The preview and beta release is to test out new features and possibly identify any bugs, in the process of using it. There is also a development snapshot that can be checked out (downloaded) from the SVN repository (http://MODxcms.com/svn.html) as the developers make changes.

For this book, we will be using the stable...

Documentation


The most important resource for learning any open source technology is the documentation that it comes bundled with. This section introduces you to the available documentation for MODx.

There are three kinds of documentation available:

  • Official documentation

  • Community-driven documentation

  • Combined

Official documentation

The official documentation for MODx is available from the official MODx site at http://MODxcms.com/documentation.html. The official documentation tries to contain as much text as possible to cover everything about MODx. However, due to the rapid level at which changes happen, and the process involved in making documentation official, the official documentation does not cover everything. You can be assured that whatever is covered in there is free from error, and can be a very good resource to start with, but, as you progress with MODx, you will find that there are other forms of documentation that are more interesting.

Community-driven documentation

Community-driven...

Getting support


What happens when you are stuck and have already searched the forums, have tried Googling, and still you haven't found a solution to your problem? That's when you can use the community to get interactive support. There are two common means of interactive support, the forums and IRC (Internet Relay Chat).

Before we discuss forums and IRC, the following is a list of guidelines one must always remember in order to get helpful replies:

  • Before asking, thoroughly check to see if what you are asking has already been answered in the forums.

  • Don't ask to ask. That is, do not ask questions like "Can I post a question?"

  • Be specific with your questions. Always make sure that when you are asking a question, you explain the following:

    • What you tried

    • What result you expected

    • What result you saw instead

  • Know your terminology. It is easier to be precise when you know the correct terminology to use when asking your question.

  • Be patient! Sometimes it may take a while before someone notices your questions...

Summary


In this chapter, you have learned how to set up a working platform for developing websites with MODx that includes the installation and configuration of the prerequisites, such as Apache, PHP, and MySQL. To make the process easier, you have used XAMPP, which is a bundle containing all of these packages. Finally, you have installed MODx and have verified that everything is set and ready.

Left arrow icon Right arrow icon

Key benefits

  • 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

Description

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.

Who is this book 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.

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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 23, 2011
Length: 288 pages
Edition : 1st
Language : English
ISBN-13 : 9781849513494
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Feb 23, 2011
Length: 288 pages
Edition : 1st
Language : English
ISBN-13 : 9781849513494
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 87.98
MODx Web Development - Second Edition
$43.99
Learning jQuery - Fourth Edition
$43.99
Total $ 87.98 Stars icon

Table of Contents

14 Chapters
What is MODx? Chevron down icon Chevron up icon
Getting Started Chevron down icon Chevron up icon
MODx Basics Chevron down icon Chevron up icon
Templating Chevron down icon Chevron up icon
Authentication and Authorization Chevron down icon Chevron up icon
Content Aggregation Chevron down icon Chevron up icon
Creating Lists Chevron down icon Chevron up icon
Snippets Chevron down icon Chevron up icon
PHx Chevron down icon Chevron up icon
Simple Recipes Chevron down icon Chevron up icon
Creating Snippets Chevron down icon Chevron up icon
SEO, Deployment, and Security Chevron down icon Chevron up icon
Plugins and Modules Chevron down icon Chevron up icon
MODx Revolution Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Half star icon Empty star icon Empty star icon 2.8
(5 Ratings)
5 star 0%
4 star 20%
3 star 60%
2 star 0%
1 star 20%
Marcin Dancewicz Oct 15, 2011
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Great book for web developers who want to learn MODx. It explains all you need to know to start building websites with this script. You need to have some web development knowledge to find it useful. One dissapointment though - it doesn't say much about MODx Revolution.
Amazon Verified review Amazon
旅モバ May 26, 2013
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
本書はまずサンプル版を読んでいただくことをお勧めしたいのですが、MODx Evolution向けの電子書籍になります。MODx Revolution向けの電子書籍は別に「MODX Revolution - Building the Web Your Way」がありますので、そちらをチェックしてみてください。内容は、MODx Evolutionによるサイト構築に必要な事項が一通り書かれていますが、どちらかと言えばMODxでサイトを構築するWebデザイナーやマークアップエンジニア向けです。一応スニペットやプラグイン、モジュール開発に関することも触れられていますが、Web上で調べれば出てくる以上の情報は無いと思って良いです(むしろWebで出てくる情報の方が詳しい)。ただ、初めてMODxに触れる方は情報がまとまっているため、開発を進める上でのヒントにはなると思います。
Amazon Verified review Amazon
Guitarrista Jun 04, 2011
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
I reviewed the first version of this. It was a very positive review, because I felt that it filled a need, that of providing guidance to the new MODx user. It did this admirably well. Anyone who regularly uses open-source content management systems knows that much of the info is scattered in forums, individual blog posts, random other places, and sometimes even in official documentation. To me, it's useful to have much of this consolidated into one place.I do agree with reviewers that said that it's not for gurus. They would not find much new info with either book. It seems to me that systems don't get guru books until they have a critical mass of popularity, and as much as I like MODx, I don't think it's quite there yet.I have to scold the publisher and author on the title of this book, which is remarkably misguided. MODx 2 is Revolution (aka Revo), a completely new release, which has been out for awhile now. Accordingly, I was eager to see if there would be substantial Revo coverage. There isn't. They just have an extra chapter giving a quick overview of the Revo concepts. The entire rest of the book is devoted to MODx 1, aka Evolution or Evo.I'm very puzzled by this. I can only think that maybe there was a publishing deadline, and Revo was not officially released at that date, so someone decided to put it out there with little Revo coverage. I think this is a mistake, both conceptually and commercially. In any case, if you want a book on Revo, you'll have to wait.That said, Evo, in my opinion, will be operant for quite some time to come. It's still more stable than Revo, simply by virtue of its having been in use so long.So if you're new to MODx, and want to learn the in's and out's of MODx 1, aka Evo, this book will be useful, and will also give you a very brief overview of Revo. If you already have the first book, I would pass on this.
Amazon Verified review Amazon
RobAlex Jan 13, 2012
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
This book has been out for almost a year and there is still only one review (besides this one)! That says something about the frustration some of us have had trying to learn MODx; there's very little material available. Thankfully we now have the new Bob Ray book as an alternative.MODx Web Development has all the right material and is of a good length - not overwhelming. The order of topics and pace are also good. What made it of much less use to me were the errors in the examples. This is especially strange in a 2nd edition. When ever I finished an example it invariably would not work. Sometimes I could figure out why and sometime not. In addition, to create the examples, there is a lot of typing - they are not available for download although that could have been provided easily.O'Reilly Publishing provides a service called Safari that provides many books online. Turns out the first volume of this book is on Safari so I was able to cut and paste the example code and save myself some typing. The fact that the examples hadn't changed much from one edition to the next hints that there weren't that many changes and may explain why there were still so many errors.Finally the errors got to me and I gave up about half way through and still not understanding MODx. Since then I've been using Drupal for which there are dozens of books available. Perhaps the new MODx book is worth a look but it sure is large for a CMS that is supposed to be so much easier to use than, say, Drupal.
Amazon Verified review Amazon
stetod Sep 16, 2017
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
File esercizi non completamente disponibili!Exercise file not fully available!Pessimo modello didattico di studio!Bad teaching model of study!
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.