Tutorial #2: PagesPages are the basic structure of the Radiant CMS. They are arranged hierarchically in a “tree.” If page B is below page A in the hierarchy, we say that page B is a “child” of page A. This section of the tutorial will take you through the process of creating and editing your first page. Creating your first page
Editing and saving the page
If you chose a different title for your page, then use that title instead of “test”. Use all lowercase, and replace any spaces in the title with dashes. If you get a “page not found” error, you may not have set the status to “Published” What just happenedLet’s review what we just did. Page Title The page title you chose, by default, becomes the last part of the URL needed to open the page in your browser. This doesn’t have to be the case. Under the Page Title area, click on the “more” link. Now you will see two additional fields. The first is the Slug, which is what actually forms your URL. Change the Page Title to “My Test Page”. Notice that the slug changes to “my-test-page”. Since you can’t have spaces in a URL, it replaces any spaces with a dash. It also makes everything lowercase, so that URLs stay consistent. You can override the default slug by typing in the slug area. If you changed the page slug to “foo” then the URL to access the page would be “[server name]/test-area/foo. Filter When we created the page, we chose “Textile” for the filter. Textile is a tool used by many content management systems and blogging sites for editing content. The goal of Textile is to minimize the amount of syntax you need to know in order to create content. It also keeps the content easy to read. If you needed to use something else, such as HTML, you can do that – you would just leave the Filter set to <None>. But that would just make our lives more complicated than they need to be for now. This tutorial will take you through the basics of Textile. Any time you need something that Textile can’t do, you can always pawn it off on someone who knows HTML! There are other filters available as well, but we’re going to stick with Textile. They all offer roughly the same features, but some of them are more familiar to experienced bloggers. Status The Radiant CMS supports several different statuses. A page starts out in Draft status. This means that no one can get to that page from their browser. When you set the status to Published now the world can access that page. A Hidden page can be used as a folder in the page hierarchy. The “Test Area” page is hidden, because it doesn’t contain any content worth publishing. The Reviewed status is used when teams are working on a page. Normally you won’t need it. Saving and viewing pages When editing pages, it is most convenient to keep the editor open in one window of your browser, and the page itself in another. That way, you can work in the following cycle:
When you are done altogether, you can choose “Save Changes” and exit the page editor. Moving on…Keep the editor open for your test page, and we will move on to editing with Textile. |
|