|
| |
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.
|
|
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
|
|
|