Creating a blog site
Now that we have created a template, we can create any number of resources that can use the same template. Now let us extend this behavior further to allow a user to create a resource by using some interface in the site without having to use the Manager interface. In the next section, you will find the required theory behind what we are going to do. All that we do here is create a resource that shows a form that contains fields relating to a blog post to the end user. When the end user fills in the content and submits the data, a new resource is created.
Using a Snippet
For continuing with the rest of the section, we are going to use a snippet called NewsEditor
. Previously, this snippet was included with MODx. Later in the book, we further discuss installing and creating your own snippets. For the purpose of this chapter, it is enough to get the snippet installed and functioning by doing the following:
1. Download the Snippet folder from http://modxcms.com/extras/dl.html...