0

Let me start off by saying I am completely new to EE (I have mostly worked with WP before). I have watched several tutorials, but I have yet to get the hang of it.

Can anyone advise me on where to start to make some static pages that are available through the top nav (like most websites). I have the Structure plugin downloaded. Here is my site as it stands: www.smplouisiana.org.

I'd like to make the site deeper than a 1 page, dynamic, channel. If someone could give me some starting points on this I would greatly appreciate it. I'll be happy to provide any other information requested.

Thanks so much!

1
  • 1
    Why are you using Structure? If you are completely new to EE I'd highly suggest learning how EE natively works before adding Structure into the mix. You don't 'need' Structure in all cases. Commented Jun 29, 2015 at 16:17

1 Answer 1

0

You should definitely read through the documentation on Structure. Pay great attention to the difference between a managed page, listing page, and an asset. I rarely use assets, but it's worth knowing what they can do for you.

For the sake of getting you started, go to Structure and click on the Channel Settings button. You will see three columns Channel | Type | Options. Let's assume you have a channel already named "static". In the type column, choose page and click the "Show in page selector" checkbox. Next in the options column, choose a pre-existing template you'd like to use for static pages. Save your Channel Settings.

Next click on the Pages button in Structure and click the Add Page button. This will create a static page. Populate the title and save the page. That page will show up in the Structure hierarchy. You can choose to add more pages at the same level by clicking the same Pages button you clicked before, or you can hover over a previous page and add a child page below it. For example:

Page (URL = page)
  -- Child Page (URL = child-page)
     -- Grandchild Page (URL = grandchild-page)

You should then be able to access those pages with these URLs respectively:

  • /page/
  • /page/child-page/
  • /page/child-page/grandchild-page/

Make sure you've uploaded a minimum .htaccess file to the root directory of your site:

<IfModule mod_rewrite.c>

RewriteEngine on  
RewriteBase /

# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>

Note that you can choose to change the template you want to use for any of the pages you've added to Structure. For example, you may want to render a static page with a right column or a left column. Just create two different templates and within the entry change your Structure template to the one that fits your needs.

Keep in mind that you may want to render your entries using the exp:structure:entries tag instead of EE's exp:channel:entries. Structure and EE use two different URLs which sometimes are not exactly the same (a bone of contention with me). Using Structure's entries tag ensures that you're getting the correct URL. You must remember that with Structure you're basically co-opting EE's native way of handling how URLs are built. EE out of the box uses template_group/page to determine URLs. Structure frees you from this (as I showed above with the /page/child-page/grandchild-page example.

There's so much to say about how to use Structure. I've been using it for years and I love it. I wish you luck!

2
  • Thanks so much for the substantive response! I have created a test static page using the directions you provided called 'About Us' found at smplouisiana.org/about-us however it is not showing up in the nav (and I specifically selected it not to be hidden from the nav). Also, how do I add content to this page once I get it to appear on the nav? First things first though, how do I make it appear on the home page nav?Is there any html I need to do? I followed your directions to the letter. Thanks so much and please forgive my ignorance!
    – smpladmin
    Commented Jun 29, 2015 at 7:05
  • Hi, I'll talk to you later and try to give you more information. Can you do me a big favor and accept my solution? Commented Jun 29, 2015 at 19:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.