Jump to content

Visited Page's Link


shah_ankitb
 Share

Recommended Posts

Hello EveryBody, I want help from u.I made a website. Suppose I visited the page from Example : - 'Home->Products->Product Name->Product Detail'. So i would like to Just Put that type of Link's Code on Every Page as per requirement.I have seen this type of Link Most Of the Site, So that User Can Easily Understand Which Path he/she has travelled through Site. Remember I don't want the File Name's as generated in joomla.I would not like to write all the links on each & every page.I am looking for the Code/ Function/File which i have to include in every page & i got the result.I hope that somebody help me to sort out this problem.

Link to comment
Share on other sites

Hello EveryBody, I want help from u.I made a website. Suppose I visited the page from Example : - 'Home->Products->Product Name->Product Detail'. So i would like to Just Put that type of Link's Code on Every Page as per requirement.I have seen this type of Link Most Of the Site, So that User Can Easily Understand Which Path he/she has travelled through Site. Remember I don't want the File Name's as generated in joomla.I would not like to write all the links on each & every page.I am looking for the Code/ Function/File which i have to include in every page & i got the result.I hope that somebody help me to sort out this problem.
If you are using folders for each of them.
<?php  $dir=explode('/', $_SERVER['SCRIPT_NAME']);  echo 'Home';  for($i=0; $i<count($dir); $i++) {    $link.='/'.$dir[$i].'/';    echo ' -> <a href="/'.$link.'/">'.str_replace('_', ' ', ucwords($dir[$i]))."</a>";  }?>

Code has not been tested.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...