Using Server Side Includes To Simplify Your Web Design
|
|
An "include" file is a piece of code that can be put into a seperate file -- for example -- your navigation bar -- and then "included" in a number of other pages. This has the very useful advantage of allowing you to retain consistency over a very large number of pages, and then make changes to all of those pages by just changing the include file.
For instance, say you want each page in your site to include a short paragraph that uniquely identifies your site. I normally call this a "site-id". It would read something like this:
ForSaleTours.com - provides information and sources for virtual tours for the real estate industry. We explain different methods of combining video and audio to produce virtual representations of your home to enhance its value and to make the purchasing experience of potential buyers better than it otherwise might be.
To set this up so it appears in a host file as an "include", you normally have to do three things:
1. Make sure your server allows SSI (server side includes). If you have access to your web site control panel you should be able to figure this out. Or if not, ask your web host technical support people.
2. Create a "host" file and give it a file extension so your server recognizes it contains include files. A common extension is .shtml
3. Create your include file. It can usually have any of a number of different extensions: .html, .htm, .php, even .txt. This is the file that will be included within other files.
4. Embed the correct code within your .shtml file to point to the include file. If the include file and host file are in the same folder on the server, it will look like this:
<!--#include file="file_name.html"-->
If the include file is located in a different folder (on the same server), the code will look like this:
<!--#include virtual="folder_name/file_name.html"-->
In the above example you have to make sure the relative path to the include file is set correctly.
Now when you want to make a global change to, for instance, your "site-id", you just have to change the include file (once), and this change will be populated through all the pages that include that file.
Include files can be put to many creative uses that allow you to do things that are otherwise very impractical. And if you have a website with a large number of pages, this technique can save you a great deal of time.
For more web design and online marketing tips see the Linknet Marketing Resource Library
Rick Hendershot is a marketing consultant, writer, and internet publisher who lives in Conestogo, Ontario, Canada. He publishes several websites and blogs, including The Linknet Network of Websites. This network provides an inexpensive way to advertise your website, and get as many as 100 low cost links.
|
|
|
Created & Maintained by Empower! CMS Web Sites
Host2Sell Web Hosting | Emarketing Workshops | Site SEO Review | FREE NewsletterMake Your Site Quick To Load!
The time it takes to load your site can make or break a visitor's first impression of your site. If your site takes too long to load, the visitor will click "Stop" or "Back" and leave your web site. If you are a business and offering people important information, it is critical to have a nice design, with a quick load time.You may want to check out the load time of your page, to indeed see if your site loads quick enough for the average user. A great site tool can be found at http://www.websiteoptimization.com/services/analyze/ where you are able to enter your site and it displays a report on the time it takes to load your site on different connections, in addition to tips to decre...(related: Web Design)
The Key To Getting More Magic Shows Booked Online
This article is the result of a conversation I had with a magician about his website. He wanted to know if I could build him a nice looking site that had his name and contact information on it. I explained to him the purpose of having a website and what you want visitors to do when they land on your site.
Why Do You Have a Website?The number one reason magicians have websites is ego. They want to be able to say to people, "You can visit my website at www.bite-me-hard.com." When the person visits the website they usually see one of two scenarios:- Brochure Site
- Typical Magician's Site - See Part 2 of this series for an example.
Web Designers Beware!
As a web designer, I have a personal interest in a new trend which threatens to put me and my kind out of business. That "threat" is Web Design Templates. In short they are ready-made web design products which can be used as a basis for a fast and high-quality website. You usually receiv...(related: Web Design)
What Happened To My Website When I Deleted The Home Page By Mistake?
There is a widespread confusion among lots of new website designer concerning the home page.If you get any book, any course, or ask most web page designer how to build a website...(related: Web Design)
Ten Basic Steps For Building A Web Site That Works
1. Assemble a web site development plan that is integrated with your overall marketing processes; the content should be consistent with offline materials, the graphics/images don't have to be identical ...(related: Web Design)
You Too Can Have An Amazing Website
It is a well-known fact that a successful business depends greatly on how it is marketed. With an ever increasing dependence on the web, the use of a professional website is not only a necessity, but a priority. Although it is a common thought that only large businesses can have top-notch websites, with the tools available today what seemed impractical can now be a reality. Best of all, designing an ...(related: Web Design)
Title Tags - How To Make Them More Effective
The title tags of your web pages are more important than most web authors realize. Once you understand why the title is so important, you can easily write more effective title tags.What is the title tag?In your HTML code, the page title should be placed between the beginning and closing HEAD tags, ideally just after the beginning HEAD tag and before the first META tag.Why is the title tag important?The title tag is important for a variety of purposes.- Most browsers display your page with the title at the top of the browser window.- If someone bookmarks your page in their browser, their bookmark list will show your page using your page title. So if the title of your web page is "Home Page", as many are, your visitors' bookmark ...(related: Web Design)
How To Choose Web Design Company?
Before deciding on which web design company to choose, you should first determine the main aim and purpose for your upcoming website. Once the aim and purpose have been identified, then only move on to choose a reliable web design company to develop your website.The first step in your searching for a reliable...(related: Web Design)
Building Web Sites Using Web Templates
Gone are the days when you had to rely on a web-designer to design your websites. New technologies with innovative...(related: Web Design)
site-map - Copyright © 2006 Empower! Web Design | All Rights Reserved. | Web Design
Web Designers Beware!
As a web designer, I have a personal interest in a new trend which threatens to put me and my kind out of business. That "threat" is Web Design Templates. In short they are ready-made web design products which can be used as a basis for a fast and high-quality website. You usually receiv...(related: Web Design)
What Happened To My Website When I Deleted The Home Page By Mistake?
There is a widespread confusion among lots of new website designer concerning the home page.If you get any book, any course, or ask most web page designer how to build a website...(related: Web Design)
Ten Basic Steps For Building A Web Site That Works
1. Assemble a web site development plan that is integrated with your overall marketing processes; the content should be consistent with offline materials, the graphics/images don't have to be identical ...(related: Web Design)
You Too Can Have An Amazing Website
It is a well-known fact that a successful business depends greatly on how it is marketed. With an ever increasing dependence on the web, the use of a professional website is not only a necessity, but a priority. Although it is a common thought that only large businesses can have top-notch websites, with the tools available today what seemed impractical can now be a reality. Best of all, designing an ...(related: Web Design)
Title Tags - How To Make Them More Effective
The title tags of your web pages are more important than most web authors realize. Once you understand why the title is so important, you can easily write more effective title tags.What is the title tag?In your HTML code, the page title should be placed between the beginning and closing HEAD tags, ideally just after the beginning HEAD tag and before the first META tag.Why is the title tag important?The title tag is important for a variety of purposes.- Most browsers display your page with the title at the top of the browser window.- If someone bookmarks your page in their browser, their bookmark list will show your page using your page title. So if the title of your web page is "Home Page", as many are, your visitors' bookmark ...(related: Web Design)
How To Choose Web Design Company?
Before deciding on which web design company to choose, you should first determine the main aim and purpose for your upcoming website. Once the aim and purpose have been identified, then only move on to choose a reliable web design company to develop your website.The first step in your searching for a reliable...(related: Web Design)
Building Web Sites Using Web Templates
Gone are the days when you had to rely on a web-designer to design your websites. New technologies with innovative...(related: Web Design)
site-map - Copyright © 2006 Empower! Web Design | All Rights Reserved. | Web Design
