WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Design Friday, May 09, 2008 
POPULAR ARTICLES
Nav Subdomain Configuration - How To Setup A Sub Domain
Nav Website Layout - Tips & Tricks
Nav Round Robin DNS Load Balancing
Nav Domain Configuration - How To Setup A Domain Name
Nav Introduction To Server Load Balancing
Nav Server Load Balancing Methods
Nav Tips On Using SubDomain
Nav Breadcrumb Navigation
FEATURED NEWS | POPULAR NEWS
View More News View More News
SPONSORED LINKS
Print| Email| Save| Discuss| Feeds


Breadcrumb Navigation
Published: Monday, August 09, 2004


About breadcrumb navigation

The term "breadcrumb" comes from the fairy tale of Hansel and Gretel, where they leave pieces of bread while going through the woods, so that they can return back following the trail of breadcrumbs. The same technique is used in website navigation, where a trail of links are displayed to the user to tell exactly where that web page is located on the website. An example of a breadcrumb trail is shown on the top of this article page.

A breadcrumb trail provides a quick way for the user to know what section or branch this web page is in. A breadcrumb is useful if the website has a lot of categories and each category is a few level deep. A good example will be a directory such as Yahoo or DMOZ.

Implementing a breadcrumb navigation on website

Creating a breadcrumb navigation for a website can be a daunting task if not planned properly. Once the categories of the website start to grow and alter, the breadcrumb can become outdated if not automated. Some of the techniques are discussed below.
  1. Hardcoding the links:
    This technique of hardcoding the links on a static HTML page works for small websites. However, if the website contains huge number of pages with many categories, this method is not recommended.


  2. Using server side includes:

    Centralize the breadcrumb navigation on a separate file for each category. If the site uses dynamic scripting language such as PHP or ASP, a single breadcrumb file can be used as shown in the next technique. Using server side include code, add that navigation file to each page that belongs to the category. This will reduce maintenance worries if the navigatio menu is changed or updated. Only one navigation file has to be updated instead of each of the web pages.


  3. Parameterize using scripts for dynamic sites:

    If you have a dynamic site, you can add parameters in each article file to generate the breadcrumb trail on the fly. These parameters will be used by the breadcrumb include file to create the breadcrumb. This technique will use only one breadcrumb include file instead of separate category specific include files. As an example, if using ASP, the parameters in the file, which contains the article, are shown below. Here the variables home_loc, category_loc and article_loc are the URLs for the homepage, category page and article directory.

    bcURL = article_loc + "my_article_name.htm"
    bcText = "My Article Display Name"


    In the breadcrumb include file, the VBScript code is similar to the one shown below.

    <a href="<%=home_loc%>">Home</a>
    > <a href="<%=category_loc%>">Category Name</a>
    <% if (bcText <> "") then %>
    >
    <% if (bcURL <> "") then %>
    <a href="<%=bcURL%>"><%=bcText%></a>
    <% else %>
    <%=bcText%>
    <% end if %>
    <% end if %>

  4. Database driven websites:
    For database driven websites, where the articles and webpages are stored in category indexes, the breadcrumb navigation can be implemented in a very similar method as shown above. However, using a database to render a category provides a lot more flexiblility. The categories of articles or products can be dynamically read from the database and rendered on the server side included breadcrumb file. The article or product categories can be changed, without altering any code for the webpages. Only the category data in the database is altered, and a new breadcrumb trail shows up for the article reflecting the new category.
Print| Email| Save| Discuss| Feeds
RELATED ARTICLES
Nav Website Navigation Tips
An effective website navigation is very important for your website. Learn tips and tricks.
Nav Server Side Includes - Centralize Common Content
Use server side includes to centralize the common web site content.
Nav Introduction To Server Load Balancing
Load balancing applies to all types of servers (application server, database server), however, we will be devoting this section for load balancing of web servers (HTTP server) .
Nav Website Hosting - Introduction
This article provides an introduction to web hosting. Learn how the internet works and why you need a web host for your website.
RELATED NEWS
News Post Crucial Paradigm Adds Server 08 VPS
May 9, 2008 -- ( WEB HOST INDUSTRY REVIEW) -- Web hosting provider Crucial Paradigm reported on Wednesday that it is introduc...
News Post Biztology launches version 2.4 of Cube Panel
Version 2.4 of the server automation software is now available for Windows and Linux operating systems and features a new str...
News Post Parallels to Resell myLittleAdmin
Parallels has announced it will be reselling myLittleAdmin for SQL Server 2005....
News Post SaaS Tool Offers Custom Database Development
CIOs, value-added resellers and business managers can now create their own custom database applications without writing any c...
News Post TableMAX and Galaxy Gaming Sign Exclusive Game Content Letter of Intent
Agreement Brings Galaxy's Proprietary Content to TableMAX's Proprietary Platform
Submit News | View More NewsView more news
RELATED CLASSIFIED ADS
Classified Ad Outsource Server Administration
Outsourcing has been the new mantra of business in this century. To make your webhosting business l ...
Classified Ad Windows Dedicated Server $80/Month
Test Drive our servers, ping, download and tracert NOW WITH 14 DAY MONEY BACK GAURANTEE All se ...
Classified Ad 8 CPU Special Email Hosting Server
Intel 5335 2Ghz / 8Mb / 1333Mhz x2pcs 4 GB Ram 73 x 2 SCSI 15k Raid 1 Windows 2003 Server Smarte ...
Classified Ad Server deals from The Planet - P4 for $69/month
Right now, you can get all the power of a Pentium 4 for only $69 a month -- that's a savings of near ...
Classified Ad US$199 Dedicated Email Hosting Server
8 to Infinity is a 11 year old Singapore Web Hosting company managing 24 racks in 4 datacentres in S ...
Post Free Ad | View More View more classifieds
RELATED FORUM POSTS
Forum Post example of Server.Transfer and Context Handler
This is an example of Server.Transfer and Context Handler. Through this we can get the multiple val ...
Forum Post Configuring BIND on windows 2003 server VPS
Hi Guys, I have a Windows 2003 Virtual Private Server and I'm trying to configure it with a BIND ...
Forum Post Need help with DNS/Zone File
Cause I'm a freaking idiot when it comes to DNS and getting it right, I need some help. I&s ...
Forum Post Free SEO tips
3 years back SEO is very easy process on Google and Yahoo. If we give a correct title on the TITLE t ...
Forum Post nslookup query is not resolved
Hi,all I'm new comer , i have facing a problem in my DNS. when i run nslookup comand for a ...
Add New Post | View More View more forum posts


Copyright © 2003-2008 WebsiteGear Inc. All rights reserved.
About | Advertise | Submit Content | Privacy | Agreement | Contact