Re: Hansel and Gretel do Cake
That's great! Just what I'm looking for. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Hansel and Gretel do Cake
I used it on one website with a lot of static pages. You can see the breadcrumb in action here: http://www.youngtravel.com/pages/geographies/africa_mid_east/botswana_chiefs_camp I used a small element to build the crumbs. here); array_shift($path); $url = '/'; $link = ''; foreach($path as $part) { if($part == '' || $part == 'pages') $url .= array_shift($path).'/'; } if(stristr($url, 'pages')) $link = '/pages'; $html->addCrumb('Young Travel & Cruises', '/pages/home'); foreach($path as $page) { $link .= '/'.$page; $html->addCrumb(Inflector::humanize($page), $link); } } ?> getCrumbs(' » ');?> I built this a long time ago so I'm certain there's a better way to do it. -Corie On Jun 18, 10:47 am, leo <[EMAIL PROTECTED]> wrote: > I'm trying to make some sense out of the two methods addCrumb and > getCrumbs. Okay, I haven't put them to the test yet, but I'm wondering > two things:- > > 1. Has anybody used them and can they link me to a realworld website. > 2. Shouldn't there be a deleteCrumb function for the backwards nav? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Hansel and Gretel do Cake
1. I can't recall which site I've used it on at the moment. 2. Crumbs aren't maintained across pages, so you have to rebuild the list each time. That makes deleteCrumb unnecessary (although I could certainly see an argument for it anyway). -Matt www.pseudocoder.com leo wrote: > I'm trying to make some sense out of the two methods addCrumb and > getCrumbs. Okay, I haven't put them to the test yet, but I'm wondering > two things:- > > 1. Has anybody used them and can they link me to a realworld website. > 2. Shouldn't there be a deleteCrumb function for the backwards nav? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Hansel and Gretel do Cake
I'm trying to make some sense out of the two methods addCrumb and getCrumbs. Okay, I haven't put them to the test yet, but I'm wondering two things:- 1. Has anybody used them and can they link me to a realworld website. 2. Shouldn't there be a deleteCrumb function for the backwards nav? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---