WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Design Tuesday, February 09, 2010 
POPULAR ARTICLES
Nav Subdomain Configuration - How To Setup A Sub Domain
Nav Website Layout - Tips & Tricks
Nav Domain Configuration - How To Setup A Domain Name
Nav Round Robin DNS Load Balancing
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 Pros and Cons of In-House SEO
I'm just coming up to the end of my first year of being an In House SEO, and it was clear in the first few months how much mo...
News Post Septentrio Satellite Navigates to DDC-I's Safety-Critical Deos Real-Time Operating System
LEUVEN, Belgium & PHOENIX----Septentrio Satellite Navigation N.V., a leading manufacturer of professional GNSS receivers, and...
News Post ShoutOUT iPhone Speech-to-Text App Adds Facebook and Twitter Support
Lets Users Speak Their Tweets and Facebook Status Updates in Fluent Natural Speech, Check and Correct Transcribed Messages Before Posting
News Post HostGator Web Hosting Renews Commitment to Keep More than 1,800 Servers Green
HostGator.com, one of the world's biggest web hosting service providers, has decided to renew its commitment on buying renewa...
News Post KEMP Technologies Offers Lowest Price, Feature-rich Load Balancing Solution
For $1,590 including first-year support, LoadMaster 2000 makes benefits of load balancing available to any-sized business
Submit News | View More NewsView more news
RELATED CLASSIFIED ADS
Classified Ad Freelance web designer hyderabad
Me (Jayaprakash) a freelance web designer with 3+ yrs of experience offering service in web designin ...
Classified Ad Mojoportal Web Hosting - WebhostforASP.NET
MojoPortal, an Object-Oriented web site content management framework written in C# that runs under A ...
Classified Ad ASP Hosting Features - WebhostforASP.NET
ASP Hosting Features includes: ActiveX Server Components Active Server Pages allows organizatio ...
Classified Ad Fix DNS Error instantly, 24x7 online Support
Fix DNS error with the help of Microsoft certified experts, just call them at toll free number 1-866 ...
Classified Ad Funny jokes, photos, videos and novelty gifts
Want a good joke? A REAL Side splitter? Then Roll Over Laughing is the place for you! We have a stac ...
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 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 ...
Forum Post new webServer and old DNS referral
hi, how u doin guys take the scenario: we have a domain that have DNS server we install a new 2 ...
Add New Post | View More View more forum posts


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