ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Trouble creating Static Pages

January 20, 2011 7:59am

Subscribe [3]
  • #1 / Jan 20, 2011 7:59am

    James Abbott

    22 posts

    Hi,-

    I’m having an issue with creating static pages on my site. I’m using Ryan Irelan’s “Expression Engine 2” quick start guide book (PragProg), so the workflow I’ve been following is:

    1) Install the Pages module
    2) Create site channel named “Static Content”
    3) Create field group named “page_copy”, as a textarea
    4) Assign 3) to 2)
    5) Create new template named “static” in the “site” template group
    6) Light up 5) using tags that call the “static_content” channel from step 2)
    7) In the Pages module, go to Module Configuration and there, set the following options:
        a) display URIs: nested
        b) default channel: Static Content
        c) default template for the Static Content channel: “site/static”.

    After doing all this, I click the “Create New Page” button in the Pages module, and fill out the form with a new page title and some test content. Then when I click “Submit” and go back to the Pages module for an overview of the newly created pages, it says: “No Pages Currently Exist”!

    Also when I visit the URL for the page I was trying to create, it either shows a “no such page” message or (if the URL is “mysite/index.php/newpage”) it just displays the main index page for the site.

    What’s going on here?

    Thanks!

    Cheers,
    James

  • #2 / Jan 20, 2011 8:08am

    Paul Stone

    97 posts

    Hi James,

    By default, the ExpressionEngine pages module requires that you type in the required page URI manually.

    When creating your page in the publish section, you need to click on the ‘Pages’ tab (it will appear just under where it says ‘Edit Entry - Static Content’.  In there you will find a field to type in the page URI.  So for your example, you would type in /newpage/

    So… if you were creating an about section with sub-pages, you could create these pages and corresponding URI:

    About (Page URI = /about/ )
    Our people (Page URI = /about/our-people/ )
    Our work (Page URI = /about/our-work/ )

    There are add-ons that help create this type of structure (and navigation) automatically:

    http://devot-ee.com/add-ons/page-helper/
    http://buildwithstructure.com
    http://booyant.com/navee

    Hope that helps,
    Paul.

  • #3 / Jan 20, 2011 11:03am

    James Abbott

    22 posts

    Hi Paul,-

    thanks for the reply - the issue sticks around though. I now manually do the following under the New Entry - Static content section:

    Inside the Publish tab, set:

    Title = “Services”
    URL title = “/services/”
    Page copy = “Test Services page”

    That should result in a page with the possible URLs of:

    http://jamesabbottdd.com/index.php/services.html
    http://jamesabbottdd.com/index.php/services/
    http://jamesabbottdd.com/services.html
    http://jamesabbottdd.com/services/

    None of these URLs display the test page copy above. Also the Pages module, when clicked, still says “No Pages Currently Exist”.

    What’s really weird is that when I go to CP Home > Modify or delete > Entry, the newly created pages ARE listed in the order of creation!

    Cheers,
    James

  • #4 / Jan 20, 2011 11:21am

    Paul Stone

    97 posts

    Hi James,

    Just want to check your updating the correct thing, because when using the pages module the ‘URL title’ field becomes irrelevant (well, it is overridden at least).  The thing that dictates what the URI is, is in the ‘Pages’ tab on the edit/publish form.

    See attached screenshot. Click the ‘Pages’ tab and then fill in the field on that page.

    Paul

  • #5 / Jan 20, 2011 11:41am

    James Abbott

    22 posts

    Paul,-

    right on, that’s what I needed to do to make it work! I was mixing up “Publish tab > URL title” with “Pages tab > Pages URI”:

    http://jamesabbottdd.com/index.php/services

    Thanks a lot!

    /James

  • #6 / Jan 20, 2011 11:56am

    Paul Stone

    97 posts

    Glad that got it sorted!

  • #7 / Jan 20, 2011 3:26pm

    Ingmar

    29245 posts

    Glad to hear it, too 😊 please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases