x
 
Create New Page
 View Previous Changes    ( Last updated by Jim R. )

Pages Quick Start Guide

There have been some questions about how to utilize the EE Pages module. Here is a quick-start tutorial. (Make sure the module is installed; otherwise, the ‘Pages’ tab will not appear in your ‘Publish’ window.)

The EE Pages module uses the weblog entries tag.

So, at its most basic:

Create a totally blank template in the “site” template group and call it “animalia”.  Put this code into the template:

{exp:weblog:entries weblog="default_site" limit="1" rdf="off" disable="trackbacks"}
<h2>{title}</h2>
{body}
{
/exp:weblog:entries}

or

{exp:weblog:entries weblog="default_site" show_pages="yes" rdf="off" disable="trackbacks"}
<h2>{title}</h2>
{body}
{
/exp:weblog:entries}

Now, create a Page, any page.  Lets call it “wolves rock”. (You can do this either by selecting ‘Create a New Page’ from the module window or normally via ‘Publish’.)

If the module is installed (it comes standard starting with version 1.6), you’ll see a ‘Pages’ tab at the top of the entry editing window, next to Categories, Options, etc.  Click there and put in any URI.  For example:

/animals/canine/feral/wolves/

Below, that - still in the ‘Pages’ tab - enter the page template. Choose site/animalia.(*)

In the Title of the Publish form, enter this:

All About Wolves

In the Body of the Publish form, enter this:

Wolves are the best animals ever.

Click the Submit button.

Now, go to http://www.example.com/index.php/animals/canine/feral/wolves

You should see:

55924a2d1c522d7c9b3769c680efe8db

Style as you want, use that template for whatever Pages you want, set the URL as needed.  It works with any template that has a weblog entries tag in it, as long as you haven’t specifically restricted that weblog entries tag from showing pages.

See here and here for more information from the user guide.

Category:Modules -> Pages

(*)Note; If you have a template group such as “animals”, and choose a URI for a particular page that is identical, the template assigned to that paticular page will appear instead of the default index file for a template group.

Categories: