Let's get down to creating our blog. To keep it simple, we are only going to have one main page that will show our posts. We will get a few blog posts and comments and display those.
1. In your
<Railo Install Directory>/webroot
directory, create a new folder calledblog
.2. Create the main
index.cfm
page with the following code:<!DOCTYPE html> <html lang="en"> <head> <title>My Blog</title> <meta name="author" content="Mark Drew"> </head> <body> <h1>My Blog</h1> <h2>Add a new blog post</h2> <form action="addpost.cfm" method="post"> <p> <label for="title">Title:</label> <input type="text" name="title" value="" id="title"> </p> <p> <label for="content">Content</label> <textarea name="content" rows="content" cols="40" id="content"> </textarea> </p> <p> <input type="submit" value="Post"> </p>...