The Importance of Semantics: Static Pages
Posted: 30 August 2007 10:00 AM   [ Ignore ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

Over the last few weeks, since I began writing in our blog for your reading pleasure, I have gotten a few suggestions about what to write on. These articles are to help you, so {encode=“lisa.wess@ellislab.com” title=“keep those suggestions coming!”}

Before we continue, this article is going use terms from The Importance of Semantics, so you may wish to take a moment and review that article.

Last Week,  I said we had completed the default URL handling, but you see, it doesn’t actually end there! Every site, including my own, has certain pages that are “static” in nature and would benefit from a simple URL structure. For example, almost every site has an About page. It would be really nice to easily add to and edit this type of content which is exactly what the Pages Module is for.

Pages makes managing “static” content very straightforward. A Page is identified by a few characteristics that set it apart from a standard weblog entry.

* You decide the URI when you create the entry in the Publish form’s “Pages” tab.
* When creating the entry, you choose the template to use for displaying that entry.

How, then, do we take advantage of these custom URIs so that we can have our articles appear magically wherever we want?  Well, read on!

Onwards!

 Signature 
Profile
MSG
 
 
Posted: 31 August 2007 10:44 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  601
Joined  09-20-2006

I haven’t made much use of the pages module as of yet.  I guess I am still working through hard-coded templates.  Eventually I will migrate!

Thanks for adding some detail to this!

 Signature 

MojoMotor User? Check out the MojoMotorist for MojoMotor resources and news. || MojoMotor Demo

Profile
 
 
Posted: 31 August 2007 11:02 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  19
Joined  09-28-2004

I wonder if “static” is the right word to use.  With me I find it is the blog entries that remain unchanged while the pages get changed quite a lot.

Profile
 
 
Posted: 31 August 2007 11:14 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

I don’t really love the term “static pages” either - but that is the most commonly accepted term for this kind of page, so I used it. =)

 Signature 
Profile
MSG
 
 
Posted: 31 August 2007 03:52 PM   [ Ignore ]   [ # 4 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  376
Joined  02-03-2005

I’ve found the pages module to be really useful. Is there a way to restrict which templates show up in the pages dropdown? Right now I’m working on a site that has about 40 different templates, but of those, there are only about 3 or 4 that could actually be used to display content. Since I’m the one who will be updating the site, it isn’t a big deal, but I can forsee it being a problem if someone else had to use it. It would be great if there was a “display in pages menu” option in the template preferences.

 Signature 

Artificial Memory

Profile
 
 
Posted: 31 August 2007 04:06 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

There isn’t a way to do that, though it may be possible via an extension.  The way I’d see it easily happening is saying, “only show templates in this group” etc.  But I haven’t seen anyone take this up yet.

 Signature 
Profile
MSG
 
 
Posted: 01 September 2007 02:56 AM   [ Ignore ]   [ # 6 ]  
Grad Student
Avatar
Rank
Total Posts:  94
Joined  08-13-2003

Hi,

I think the Pages module really is an excellent addition to EE.

I’ve run into one major problem though, and that is that I have other dynamic content on the page (like a small list of recently added blog posts in the footer which is added on every page on the site through the embedded footer template). That doesn’t load if I use the Page module.

Maybe I did something wrong, but my experience is that you’re either static or dynamic. You can’t mix them. Mixing would be a great addition to the next version though.

/ Ayza

P.S. I really like your weekly blog posts, Liza. Keep up the good works!

 Signature 

Lidne Inc. :: Business by Design

Profile
 
 
Posted: 01 September 2007 12:04 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

ayza, it should load - dynamic=“off” would normally be the reason it wouldn’t.  But if you have that and it’s still not working, go ahead and post in technical support and let’s get it ironed out.  You shouldn’t see behavior like what you describe if things are properly set up. =)

And thank you!

 Signature 
Profile
MSG
 
 
Posted: 17 September 2009 07:40 AM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  2
Joined  09-17-2009

Excuse me if I sound stupid lol because I’m new to all this sort of stuff. But I’m just wondering what the benefit is of having a static page over a dynamic page? I prefer blogs where the content is dynamic but maybe I’m missing something.

Thanks,

Bowtrol | Web Marketing

Profile
 
 
Posted: 17 September 2009 10:42 AM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26058
Joined  05-14-2004

I personally hate the term “static page” but I entitled this article that way because that’s the common use.

A static page is more often considered one that doesn’t change often - it can still have dynamic content, but it needs to be accessed more often.  Say something like an “About Us” page, or “Terms of Service”

So it’s not static as in static vs. dynamic, but static in a totally different way.

Make sense?

 Signature 
Profile
MSG
 
 
Posted: 21 February 2011 08:30 PM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  1
Joined  02-21-2011

I’ve been confused about “static” pages and “dynamic” pages so the post above this makes no sense to me. I like to use wordpress for any blogs that I do and I’ve always been told to make whatever page I want to show up better in the search engines a “static” page. Is a “static” page in wordpress the same as a “dynamic” page? I’m so confused right now.

Profile
 
 
Posted: 21 February 2011 09:05 PM   [ Ignore ]   [ # 11 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4068
Joined  12-06-2002

It’s confusing because there are three mindsets driving the terminology: content management,database/backend/implementation, and search engines.

From a Content Management perspective:
Static pages are those that are not likely to change as often.  About pages. Contact Pages. Terms of Use. Write them once and they probably aren’t going to change - hence they are “static.”

OTOH there is content that changes more often.  Blog index pages change whenever you post something new.  Product content changes with new releases. Staff profile pages change when someone leaves or someone new hires on.  Because the content changes more often it’s “dynamic”.

From a database/backend/implementation perspective:
Static pages are those where when you navigate to http://mydomain.com/about/the_company.htm there is a /about/ directory on the server with a file named the_company.htm that contains HTML, CSS, and content.  It’s “static” because the file gets created and sits on the server.

OTOH are systems like EE and any other templates-tied-to-a-database system like EE.  With EE everything past /index.php/ in the URL doesn’t exist on the server.  When that URL is requested EE goes to it’s template library, and creates the web page on the fly using instructions found there.  The result only exists in the users browser - so it’s “dynamic”.

From a search engine perspective:
Historically dynamic content has had ugly URLs - like something from Amazon:

http://www.amazon.com/gp/product/B0000VYDHA?ie=UTF8&tag=rvou-20&link_code=wql&camp=212361&creative=38060 

Search engines had a harder time indexing this content, and even when it was indexed it wasn’t ranked as highly due to the ugliness of the URL (and because some of those numbers were user ids or session ids that didn’t apply to everyone navigating to that page). 
What the search engine wanted instead was something like:

http://amazon.com/home_improvement/ladders/werner_folding_ladder 

In EE-land, from a Content Management perspective content can either be static or dynamic.  From a database/backend/implementation perspective it’s usually *all* dynamic.  From a search engine perspective it’s the best of both worlds, dynamically generated with with clean URL structures.

 Signature 

Coming to San Antonio, TX in March: a 3 Day Basic to Intermediate EE Class and an 4 Day EE Add-on Development Class.  See you there!

Profile