navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Includes & Meta Tags

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Includes & Meta Tags
Page: [1]
 
Nicole

 

Posts: 2850
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
Includes & Meta Tags - 8/6/2005 0:57:20   
Hi everyone,

Several of my sites use includes for the banner, left side and footer. Currently each of these include pages have the following info at the top of the page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <head>
  <meta http-equiv="Content-Language" content="en-us" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="description" content="" />
  <meta name="keywords" content="" />
  <meta name="robots" content="noindex,nofollow" />
  <title>
   NixDesign: Template 26
  </title>

  <link type="text/css" rel="stylesheet" href="../template26/temp26.css" />
 </head>


What I'm wondering is, if the overall page that includes those three included pages already has that info at the top of it, do this includes have to have it as well?

If I can get rid of some of it and not all, then what parts can i get rid of?

Nicole

_____________________________

:)
Tailslide

 

Posts: 6296
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 3:03:07   
You know I don't use FP so I stand to be corrected on this - but my understanding of the FP include system is that it strips out extra stuff that it doesn't need - I can see no reason why it'd need extra meta tags.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Nicole)
Nicole

 

Posts: 2850
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 3:21:42   
So do you think I could take out the Doctype, CSS & Title....in other words, do you think I can start the include with just <body>



_____________________________

:)

(in reply to Tailslide)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 3:56:08   
I believe the FP includes display what is inside of the body tags, and not the html/header outside the body tag.

Either way, it is structed properly when your include only has the information you plan to include. Meaning, only have the needed information on the include pages, not the html outside the body, nor the body tag itself. Later, when you move to php/asp template systems, you will be happy that you did this small bit of work now.

When I moved over to my own custom template system, I had to start from the ground up. It was a pain in the butt, but I am very happy I spent the extra week creating the template system.

If you want an example template, PM me your e-mail address, and I will send over a tpl file for ya to review. Designs such as the redesign for NixDesign, will work great under a php template system (a very simple one that is).

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Nicole)
Tailslide

 

Posts: 6296
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 3:56:24   
Had a bit of a Google - came up with this: http://www.ecommercetemplates.com/help/frontpage_includes.asp

They say:

quote:

Note: Only code that is between the opening and closing <BODY> tags will be read in include files, so if you have to put some script into the <HEAD> section, it will have to be moved to the <BODY>



Edit: arrrggh - beaten by 16 seconds!

BobbyD's right about php includes - they're wonderful, wonderful things!

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Nicole)
Nicole

 

Posts: 2850
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 4:14:32   
Thanks Bobby & Tailslide,

I took everything outside the <body> tags out (including the <body> tags), and and the banner include worked fine. I haven't as yet validated it again but i see no reason why it won't validate now.

Speaking of validating an include on it's own, I guess you just ignore the obvious messages it'll give you about no Doctype etc.

Thanks Tailslide for Googling that link, i'll take a look at it in a sec. And Bobby, I'll PM you now.

Nicole

_____________________________

:)

(in reply to Tailslide)
Tailslide

 

Posts: 6296
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 4:22:38   
There's no point in validating an include on it's own - validate the complete page as the include is included in that.... if you see what I mean. Only a single document is sent by the server, not two.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Nicole)
Nicole

 

Posts: 2850
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 4:28:41   
Well I read your post after doing it. lol.

The total page was firstly validating with no errors and no warnings, and 12 access warnings.

Having done what Bobby suggested i'm now getting no errors, no warnings and 34 access warnings. They are all warnings that don't actually effect my page though.

Nicole

_____________________________

:)

(in reply to Tailslide)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Includes & Meta Tags - 8/6/2005 4:31:21   
Info sent! Iif anyone else reads this thread and wants the information as well, just send me a PM/email with your e-mail address :)

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Nicole)
Nicole

 

Posts: 2850
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Includes & Meta Tags - 8/7/2005 23:36:56   
Just an update for anyone following this thread, or indeed if anyone is thinking about using NoteTab in conjunction with FrontPage on a site using Frontpage Includes:

I've struck a lot of problems this morning which I've solved (I think). I went back and made some minor changes to my template in FrontPage having already removed the excessive meta tags and other info above (and including) the <body> tags. Then I published the Template again using FrontPage Publish Web / Publish Selected Files and then viewed my template in Firefox / IE / Mozilla / Opera & Netscape.

No includes were showing!

After a lot of playing around with things, I've come to the conclusion that tidying your code using NoteTab is the LAST thing you do before FTP'ing your site, as going back into FrontPage and publishing the files from there somehow causes the includes to not be visible.

Am I right? Am I doing something wrong by FTP'ing instead of publishing in this instance? To my knowledge the only feature of my template that requires FPSE are the includes.

Nicole



_____________________________

:)

(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Includes & Meta Tags - 8/8/2005 2:23:58   
Nicole,

Can you explain what you are using NoteTab for? What exactly are you editing?

FP is known for changing quite a bit of stuff around to be more "FrontPageish"

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to Nicole)
Nicole

 

Posts: 2850
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Includes & Meta Tags - 8/8/2005 2:46:47   
FrontPage wants to keep putting "width" and "height" attributes for all <img> elements, and when I'm validating i'm getting messages to say that the "height" attribute is deprecated.

So I'm using Notetab to take the "width" and "height' attibutes out of the code, saving the file then FTP'ing to the server.

Nicole

_____________________________

:)

(in reply to BobbyDouglas)
rubyaim

 

Posts: 757
Joined: 6/22/2005
Status: offline

 
RE: Includes & Meta Tags - 8/8/2005 3:09:50   
quote:

FrontPage wants to keep putting "width" and "height" attributes for all <img> elements,


Nicole, how does FrontPage put these back after they have been removed? This seems really odd ... What does NoteTab do that can't be done in code view of FrontPage or in Notepad?

Sorry for the questions, have never had this type of thing happen, but if it's common then one day it probably will occur here and I'll need a fix :)

EDIT: Re the FTP'ing of FP Includes - I've been doing this for 4 years to a site on a 'nix server (with no FP extensions) and have never had any problems at all. I just have to remember to also FTP the pages that call in the include I've changed...

Sally

(in reply to Nicole)
Tailslide

 

Posts: 6296
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Includes & Meta Tags - 8/8/2005 4:32:02   
Height attribute for images is definitely not depreciated - I always put in Height and Width for images otherwise the page jumps around when it downloads.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to rubyaim)
Nicole

 

Posts: 2850
Joined: 9/15/2004
From: Nambucca / Kempsey, Australia
Status: offline

 
RE: Includes & Meta Tags - 8/8/2005 4:44:00   
You're right Tailslide!!!!

Now where was I getting that message about "Height" from??? If I remember or if I see it again I'll post it here.

Back to the issue though, I've just been trying to add skip navigation to a template, so i went back into FP to add the code and look at what I was doing while I was doing it. Bingo!!! No includes were showing again.

What I've been doing if anyone is as lost as me is;

Making the desired changes in FP, saving the files and them calling the include files up in Notetab and deleting all the info above the <body> tag and including the <body> tag itself and the </body> and </html> tags at the bottom. Then I've also been removing the height and width attributes (but maybe now I shouldn't, but regardless that's what i've been doing).

Then i've been FTP'ing the files once i've saved them using Notetab.

The site has been working fine until I need to make a change and open FP to do those changes, click the "preview in web" button and view in any browser and the includes aren't loading.

So, forgetting what I've written or read above, I'm now concluding that for FP Includes you have to leave all the info above the <body> tag IN

Nicole

_____________________________

:)

(in reply to Tailslide)
Tailslide

 

Posts: 6296
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: Includes & Meta Tags - 8/8/2005 5:02:49   
Re: the height/width thing - strictly speaking these should be depreciated in XHTML because they are presentational and all the other presentational stuff has been depreciated - I think off the top of my head that this is the last bit of presentational layout still allowed: http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_img

They do help structure a page - especially on a slow dial-up where the images might take ages to download - I hate it when pages jump around when I'm trying to read them!!

There's so much information out there and a lot of it is inaccurate - I've found this to my cost in the past where I've mentally noted something and the for whatever reason filed it in the "must be true" section of what passes for my brain. Somehow then it lodges in there like a cat up a chimney until it dawns on me (or someone else points out) that I'm talking rubbish.

From an outsider's point of view - FP always amazes me. People can, without enormous knowledge of these things, do really complex stuff - databases etc - which is astounding. And yet it can really mess you up when you want to do something simple like change the name of a page or have root links instead of relative ones.

(I quite like Notetab - also Notepad ++ is excellent)

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to Nicole)
caz

 

Posts: 3591
Joined: 10/10/2001
From: Somewhere south of Chester, UK
Status: offline

 
RE: Includes & Meta Tags - 8/8/2005 6:13:06   
This is chasing it's tail ( sorry, tailslide - so pun intended) - yes you can ftp includes, but if your site has FPSE why do so?- because you have to re-ftp all the pages that call that include so that changes take effect site wide. The full benefit ie. automatic up dating of all affected pages only occurs when the web is extended with FPSE.

See this tutorial Includes

I set up my own templates in FP and they work well; FP doesn't change my code at, all because I work in code view and have preferences set to preserve existing html.

The html of an inclded page loks like this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" 

lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; 

charset=utf-8" />
<title>Footer</title>
</head>
<body>
<ul>
<li><a href="../contacts.html" title="Link to contacts page, 

which opens in a new window.">Contact</a></li>
<li><a href="../privacy.html" title="Link to the privacy 

policy, which opens in a new window">Privacy</a></li>
<li><a href="../copyright.html" title="Link to the site 

copyright statement, which opens in a new 

window">Copyright</a></li>
<li class="subhead" title="Year of 

publication">CIIG©2005- </li>
</ul>
</body>
</html>


If you want a sample template page to pick apart Nicole, then pm me.

Cheers
Carol

_____________________________

Do not meddle in the affairs of cats, for they are subtle and will dance, or more on your keyboard.
Cheshire cat. www.doracat.co.uk

I remember when it took less than 4hrs to fly across the Atlantic.

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Includes & Meta Tags
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts