shah_ankitb Posted April 10, 2007 Share Posted April 10, 2007 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 More sharing options...
justsomeguy Posted April 10, 2007 Share Posted April 10, 2007 In order to do that, you need to have the files or sections or pages or whatever in a database, so that you can tell for example that Home is a parent of Products. Do you already have that set up? Link to comment Share on other sites More sharing options...
zppblood Posted April 10, 2007 Share Posted April 10, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now