mugitty Posted March 2, 2003 Posted March 2, 2003 I've been trying to solve how to get the breadcrumb to show in the osWrapper contribution. The original contribution made no provision for showing the breadcrumb path, so all files called with it just showed Home >> Catalog I have succeeded in getting the file name to show: Home >> Catalog >> local.php with this for the breadcrumb code in wrapper.php $breadcrumb->add ('' .$file. '', 'NONSSL'); But the active link on "local.php" is http://farmex.now.tc/catalog/NONSSL which is obviously not correct... it should be http://farmex.now.tc/catalog/wrapper.php?f...?file=local.php and I would even be satisfied if the link wasn't active and just showed the filename (ideally without the filename extension) Anyone have any pointers? Thx Quote ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent!
emiliano Posted March 2, 2003 Posted March 2, 2003 shouldn't be $breadcrumb->add (NAV_TEXT_WHAEVER,'' .$file. '', 'NONSSL'); just gueesing, but give it a try! cheers emiliano Quote patagonia, argentina
Guest Posted March 4, 2003 Posted March 4, 2003 Hmm I think you are both being a little redundant in the coding of that breadcrumb. This is unnecessary: $breadcrumb->add (NAV_TEXT_WHAEVER,'' .$file. '', 'NONSSL'); This will work as well, note the lack of '' things around $file. It doesn't need them. $breadcrumb->add (NAV_TEXT_WHATEVER, $file, 'NONSSL'); But I reckon that this will be pretty cool ... It will get rid of the file extension, and convert all other dots to spaces. $breadcrumb->add(implode(' ', explode('.', $file)), tep_href_link(FILENAME_OSWRAPPER, 'file='.$file)); Now that's what I call a one-liner. All I have to make it do is make it drop the PHP extension, for which I reckon I would need at least a two-liner. I'll try and think of a way to do it. Quote
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.
Note: Your post will require moderator approval before it will be visible.