• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DTE BreadCrumb Class

#31
[eluser]ericsodt[/eluser]
[quote author="Bazze" date="1283824140"]Hmm.. works great as long as you click your way thru on the site, but if you for example click a link which leads to a page which should be 'Home > Sub level 1 > Sub level 2 > Sub level 3' it just becomes Sub level 3.[/quote]

I am not quite sure what you mean by your comment, can you please expand


The point of breadcrumbs is to be able to follow 'your trail' through the site. Your job, as the programmer, is to create that trail by adding "crumbs" to the stack.
Code:
// setup breadcrumb
        $bc = array(
               'title' => 'Home',
               'url' => 'home',
               'isRoot' => true
        );        
        $this->breadcrumb->setBreadCrumb($bc);
        
        // pass data onto the views
        $data = array(
               'title' => 'my name',
               'content' => 'home',
               'breadcrumbs'=>get_Instance()->breadcrumblist->display()
        );
        $this->load->view('siteLayout',$data);

If you get to the "update person" page by going through a link then the crumb should be: "Home > Update Person". If you get to the "update person" page by clicking around through the "organization" page and the "content" page, then the bread crumb will be:
"Home > Organization > Content > Update Person". A bread crumb is created to be able to follow the way in which you got to your current destination...


Messages In This Thread
DTE BreadCrumb Class - by El Forum - 12-16-2008, 01:06 PM
DTE BreadCrumb Class - by El Forum - 12-16-2008, 08:31 PM
DTE BreadCrumb Class - by El Forum - 12-16-2008, 08:37 PM
DTE BreadCrumb Class - by El Forum - 01-01-2009, 05:28 PM
DTE BreadCrumb Class - by El Forum - 01-01-2009, 05:48 PM
DTE BreadCrumb Class - by El Forum - 01-01-2009, 05:52 PM
DTE BreadCrumb Class - by El Forum - 01-01-2009, 07:26 PM
DTE BreadCrumb Class - by El Forum - 01-13-2009, 06:50 PM
DTE BreadCrumb Class - by El Forum - 01-13-2009, 07:17 PM
DTE BreadCrumb Class - by El Forum - 01-13-2009, 08:32 PM
DTE BreadCrumb Class - by El Forum - 01-13-2009, 09:02 PM
DTE BreadCrumb Class - by El Forum - 01-14-2009, 01:54 PM
DTE BreadCrumb Class - by El Forum - 01-14-2009, 02:02 PM
DTE BreadCrumb Class - by El Forum - 01-14-2009, 02:12 PM
DTE BreadCrumb Class - by El Forum - 01-14-2009, 02:17 PM
DTE BreadCrumb Class - by El Forum - 01-14-2009, 09:28 PM
DTE BreadCrumb Class - by El Forum - 03-03-2009, 03:45 PM
DTE BreadCrumb Class - by El Forum - 03-15-2009, 11:06 AM
DTE BreadCrumb Class - by El Forum - 04-29-2009, 07:58 PM
DTE BreadCrumb Class - by El Forum - 06-10-2009, 07:54 AM
DTE BreadCrumb Class - by El Forum - 06-11-2009, 04:33 PM
DTE BreadCrumb Class - by El Forum - 08-03-2009, 01:38 AM
DTE BreadCrumb Class - by El Forum - 09-23-2009, 02:05 PM
DTE BreadCrumb Class - by El Forum - 10-06-2009, 07:10 AM
DTE BreadCrumb Class - by El Forum - 12-21-2009, 01:21 PM
DTE BreadCrumb Class - by El Forum - 12-21-2009, 01:29 PM
DTE BreadCrumb Class - by El Forum - 12-21-2009, 01:49 PM
DTE BreadCrumb Class - by El Forum - 04-10-2010, 12:45 AM
DTE BreadCrumb Class - by El Forum - 04-10-2010, 08:22 AM
DTE BreadCrumb Class - by El Forum - 09-06-2010, 02:49 PM
DTE BreadCrumb Class - by El Forum - 09-06-2010, 04:17 PM
DTE BreadCrumb Class - by El Forum - 09-06-2010, 04:23 PM
DTE BreadCrumb Class - by El Forum - 09-06-2010, 04:29 PM
DTE BreadCrumb Class - by El Forum - 10-28-2010, 12:43 PM
DTE BreadCrumb Class - by El Forum - 06-18-2011, 05:18 PM
DTE BreadCrumb Class - by El Forum - 07-16-2012, 02:05 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.