nonexistentera Posted June 13, 2009 Share Posted June 13, 2009 Hello. I have been searching around for something that could meet my needs, but as of which have not found anything. I have all my url's layed out as so index.php?action=requestedAction Which apache rewrites to /requestedAction I am not sure how I could create a breadcrumb trail for this, or where to really begin. Anyone knowledgeable on this :/ Thanks for anything in advance -nonexistentera Quote Link to comment https://forums.phpfreaks.com/topic/162042-php-breadcrumbslink-tree-help/ Share on other sites More sharing options...
.josh Posted June 13, 2009 Share Posted June 13, 2009 The point of breadcrumbs is that you are navigating deeper within a page hierarchy. You have a single controller page that rewrites it to a different url yes, but the setup is still that single controller page > action so it's kind of pointless to have breadcrumbs... You can just have a static link back to the homepage, without the action being specified. Quote Link to comment https://forums.phpfreaks.com/topic/162042-php-breadcrumbslink-tree-help/#findComment-855017 Share on other sites More sharing options...
nonexistentera Posted June 13, 2009 Author Share Posted June 13, 2009 Well I mean like it will be ?action=browse let's say and there are categories, and sub categories, so ?action=browse&cat=3&subcat=2 So lets say 3 is Software, and the sub category is PHP. There would be Home>Browse>Software>PHP Then the user can go to the category software, or the browse section. I think I just saw what I needed, so I will see what I can think up. Quote Link to comment https://forums.phpfreaks.com/topic/162042-php-breadcrumbslink-tree-help/#findComment-855019 Share on other sites More sharing options...
.josh Posted June 13, 2009 Share Posted June 13, 2009 well if you have modrewrite transforming it into say /browse/software/php you could just grab the url and explode at the / and wrap link tags around each piece. implode it back together with > Quote Link to comment https://forums.phpfreaks.com/topic/162042-php-breadcrumbslink-tree-help/#findComment-855025 Share on other sites More sharing options...
nonexistentera Posted June 13, 2009 Author Share Posted June 13, 2009 For some reason that slipped my mind. It's brilliant. After some time of working with mod_rewrite I finally have it running smoothly. Now for the php side. Thank you for giving me some extra common sense. oh BTW, Nice sig Quote Link to comment https://forums.phpfreaks.com/topic/162042-php-breadcrumbslink-tree-help/#findComment-855058 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.