AdRock Posted February 15, 2007 Share Posted February 15, 2007 I have been looking on the web how to create a breadcrumb trail and I can't find anything useful. I have seen that it can be done using php so i'm wandering if anyone knows where I can find out how to do it or has got an example I can see? Link to comment https://forums.phpfreaks.com/topic/38693-how-to-create-breadcrumbs/ Share on other sites More sharing options...
emehrkay Posted February 15, 2007 Share Posted February 15, 2007 how are you displaying pages? are they all stored in the db or static? Link to comment https://forums.phpfreaks.com/topic/38693-how-to-create-breadcrumbs/#findComment-185874 Share on other sites More sharing options...
AndyB Posted February 15, 2007 Share Posted February 15, 2007 http://www.zend.com/zend/spotlight/breadcrumb28.php is the site I remember for this. A google search for php breadcrumbs shows quite a few others that may solve your problem Link to comment https://forums.phpfreaks.com/topic/38693-how-to-create-breadcrumbs/#findComment-185890 Share on other sites More sharing options...
bluebyyou Posted February 16, 2007 Share Posted February 16, 2007 good link, but what if the pages are created dynamically using a DB? Link to comment https://forums.phpfreaks.com/topic/38693-how-to-create-breadcrumbs/#findComment-186135 Share on other sites More sharing options...
AdRock Posted February 16, 2007 Author Share Posted February 16, 2007 With my site I have the index page as a template with the main structure of the site and where content changes I use a switch statement <div id="content" class="style3"> <?php switch ($_GET['page']) { case "archive_articles": include('archive_articles.php'); break; What i want to know is can i use breadcrumbs with this? I have used mod rewrite for my image gallery so it look like the gallery is in another directory where in fact it's all in the same directory in the same switch statement I would like something like Home > Contact Us and for the image gallery Home > Gallery > Events Is there a way using php that I can get the page name and create the breadcrumbs depending on what the page name is? Link to comment https://forums.phpfreaks.com/topic/38693-how-to-create-breadcrumbs/#findComment-186165 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.