WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Design Saturday, November 07, 2009 
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 Frbiz.com Evaluates Sony Ericsson XPERIA X10
BEIJING , Nov. 6 /PRNewswire-Asia/ -- Frbiz.com, one of China's leading B2B search platforms with more than 30 B2B indus...
News Post The Rick Amato Show, Presented by The Washington Times, Receives Best Interview in Talk Radio Category
WASHINGTON, Nov. 6 /PRNewswire-USNewswire/ -- The Rick Amato Show, presented by The Washington Times, received first place fo...
News Post Authentidate Introduces New Interface for Inscrybe Healthcare with Definitive Homecare Solutions' CPR+
Company to exhibit and present at the CPR+ User Conference on November 6-8, 2009
News Post SuperNet Launches IDT - VoIP Simplified
CINCINNATI, Nov. 6 /PRNewswire/ -- SuperNet of Ohio Inc., headquartered in Loveland, announces the launch of its sophisticate...
News Post CSC Signs IT Services Contract With Raytheon
FALLS CHURCH, Va., Nov. 6 /PRNewswire/ -- CSC (NYSE: CSC) today announced it has signed a contract for a range of IT services...
Submit News | View More NewsView more news
RELATED CLASSIFIED ADS
Classified Ad WebhostforASP.NET - Microsoft SQL Server 2008
Microsoft SQL Server 2008, an upgrade version of MS SQL 2005. It comes with a brand new range of adv ...
Classified Ad Community Server Web Hosting - webhostforasp.net
Community Server Hosting is known as online community application built with asp.net. It includes fo ...
Classified Ad Freelance web designer hyderabad
Me(Jayaprakash) a freelance webdesigner with 2+ yrs of exp offering service in web designing Our we ...
Classified Ad ASP Web Hosting Provider - WebhostforASP.NET
We fully support ASP, ASP.NET 1, or ASP.NET 2 hosting in all our servers. Mix and match PHP, ASP, AS ...
Classified Ad WebhostforASP.NET - New Dotnetnuke 4.9 hosting
DotNetNuke also referred as DNN is an open source content management system. It is recommended for c ...
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-2009 WebsiteGear Inc. All rights reserved.
About | Advertise | Submit Content | Privacy | Agreement | Contact