We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Adding Static Pages to Website

How Do I?

avori's avatar
avori
67 posts
2 years ago
avori's avatar avori

Hello, I am new to expression and I cant figure out how to add static pages. My website currently has about 30 pages and every one of them is static with its own design and information.

I want to add a blog, so so far, I have the blog and my home page figured out, how to add additional static pages. Also, how do I setup the links in my site menu, I’m having problems making that work as well. Im running on a local server on windows via xampp, so I’m having issues with paths.

       
running with scissors's avatar
running with scissors
149 posts
2 years ago
running with scissors's avatar running with scissors

There are multiple ways of doing this. The simplest and most direct approach is creating a template group and template for each page. Let’s say you want to create an “About Us” page, you would simply create a template group called about-us. By default that will already have a blank index template. You can add whatever html you want in that. You can then link to that page via:

https://example.com/template_group/template or in this case https://yoursite.com/about-us

Any other templates you create in that template group such as a Teams page will look like this:

https://yoursite.com/about-us/teams

Depending on your preference or site needs, there are better ways to achieve this using more basic EE template tags or utilizing an add-on like Structure but that should get you started.

As for site navigation you can do this manually by having static links in your html (not very fun, I know), you can build your own taking advantage of some of the EE’s core functionality like conditionals (better but can still be kind of tedious), r you can use an add-on that make it much easier to manage. Structure has this functionality built in and is now included with EE, plus it is simple to include in your template.

       
Rob Allen's avatar
Rob Allen
3,105 posts
2 years ago
Rob Allen's avatar Rob Allen

I’d suggest the 1st party Structure module here. With that you’d get several options:

  1. The ability to nest pages
  2. Select the template you want to use per entry/page
  3. Create navigation which auto updates when you add new pages

With some creative use of custom fields you may be able to whittle the number of templates needed right down which makes management easier.

       
avori's avatar
avori
67 posts
2 years ago
avori's avatar avori

Thank you all for the help! I got the site up and running on EE now.

       
drebitto9's avatar
drebitto9
2 posts
one year ago
drebitto9's avatar drebitto9

Setting up your website with static pages and a blog can be like mastering the art of KinitoPET – challenging but rewarding! For your menu links, ensure the paths are correct, considering your local server setup. Keep tinkering, and you’ll get it!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.