PDA

View Full Version : 'back' navigation


kushaaal
03-06-2006, 07:40 AM
Greetings,
I want to put [back] navigation on each page which takes me to the previous page irrespective of from where in the webpage I navigated.
Breadcumb sometimes gives false navigation, as many a times the categories are at different place.
Regards,

Vanceone
03-11-2006, 04:28 AM
What do you mean by this, Kushal? Do you want a back button or something that goes up the category tree for sure? For example, if you have a category that has a parent category and also a grandparent category, then clicking the back button will search and make sure you go to the parent for sure?

Or, do you want a back button like most browsers do?

kushaaal
03-11-2006, 05:52 AM
Well rightly worded for me: A back button similiar to browser back botton in my webpage.
The point is to go back exactly to the page from where I navigated.

Vanceone
03-11-2006, 06:36 PM
But only within the Subdreamer system? I mean, why does the browser back button not work?

And if this is a plugin (all it takes is a link back to the referrer page, I think) how will this fit into a system? Or do you just want some code to plugin somewhere?

kushaaal
03-11-2006, 06:41 PM
I use zoomla in one of my website:
http://www.kushalpathak.com and I found it very handly to have a back button at the end of the document, which takes me back to the page from where I had naivgated.
This is the link of the [back] button: javascript:history.go(-1)

Robert_J_Ellis
03-11-2006, 07:27 PM
I had the problem you encountered with the breadcrumb trail. I solved it by using an htaccess redirect. Subdreamer by default will send a category when clicked to the right destination, but the breadcrumb will not know this.

Here's an example of what I added to my .htaccess file to get the results I needed.


RedirectMatch .*/news http://www.sddepot.com/site_news/
RedirectMatch .*/products http://www.sddepot.com/product_main/


In the first example I set news ( which actually redirects to site_news ) in the breadcrumb to work right. There's quite a few strengths to having your links redirect - including better subcategory navigation.

kushaaal
03-11-2006, 08:02 PM
hmmm! little more explanation will derive a theorum for me ;)

Robert_J_Ellis
03-11-2006, 08:17 PM
Nothing left to explain really. .htaccess redirects are the best way to ensure that your breadcrumb links are going where they need to go.

I've been using this for over a year with no problems; Breadcrumbs make a site really easy to navigate. It's even possible to make it match your IPB, PhpBB, VB, or SMF breadcrumb :), so that everything looks integrated.

Perhaps that'd be a good modification to post. I'll think about it.

kushaaal
03-12-2006, 05:36 AM
kindly do so, till that; your golden words still cannot be implimented at my portal :)