Discussion Locked

Breadcrums (you are here style)

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi all,

I am doing a research on using breadcrumbs(you are here style) for the nested websites.

As i see there are different methods to accomplish this such as using

, tags etc. I would like to know Which way is the best and why?

Is there anyway to take the code for breadcrumbs out of the source code of a webpage and put it in a css file in the root? how?

When you visit for instance this page:

https://www.techrepublic.com.com/5208-6230-0.html?forumID=3&threadID=174145&start=0

and then click on the "discussion center" on the breadcrumb line (sorry if I don't use a proper name) it takes you to this page:

https://www.techrepublic.com.com/5221-6230-0.html

Once you are in the above page, forward button becomes gray and the only way to go to the visited page is to use the back button of the browser.
But what about browser's forward button? why we cannot use the forward button to go forward "each time one level lower" until we get to the point that we were before? this is how the breadcrumbs are listed, isn't it? see this:

Home > Discussion Center > Article Discussion > Discussion

Is there anyway to accomplish this? how?

I would appreciate your comments.

Thanks

4 replies

by softcorp.us

Hello davoud...

What you're suggesting is an interesting idea but is not possible given the way a web browser works. A web browser moves from page to page via links. It's a one-dimensional organization. The web browser doesn't know anything about the hierarchical relationships between pages within a website. The concept of a "website" is not even restricted to a single domain (www.domain.com).

Of course, the heirarchical relationships between the pages of a website is often a useful notion. If a website wants to offer hierarchical navigation (go up to parent, go down to child), it must implement it on its own in the content web page itself. It is programmed into the website's pages.

Some websites are built of a hierarchy of web pages that are implemented in hierarchical directories in the file system on the web server. There could be a generalized hierarchical navigation of those pages, but that is not part of today's web browsers. And, not all websites are built that way.

by davoud

Thanks very much for your message. Yes i understand how a browser works. I also understand how heirarchical relationships between the pages of a website are built. What i am asking is that what to do to connect or link these two to eachother somehow?

by softcorp.us

Hello...

"...But what about browser's forward button? why we cannot use the forward button to go forward "each time one level lower" until we get to the point that we were before?..."

This part of your message led me in the direction of my original reply. I thought you were talking about the Forward button doing something different than it does.

---

"...What i am asking is that what to do to connect or link these two to eachother somehow?..."

This information is maintained in a data store on the server.

For example, let's say you want to present, on each page of your website, a hierarchical navigation pane at the left, much like the folders tree in Windows Explorer.

The server-side data store maintains the hierarchical relationships that you want between the pages. Then, you generate each page dynamically via server-side scripting in PHP, PERL, etc. Depending on which page is being generated, the hierarchy at the left will be different. In particular, the current page in the hierarchy could be highlighted.

This discussion is closed to new replies.