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

#11
[eluser]ericsodt[/eluser]
[quote author="morozgrafix" date="1231921963"]Thank you for creating this class. I just added it to my project and it works great.
Sorry can't give you URL for the site since this is intranet portal site.

One thing to add (and I haven't played much with DTE BreadCrumb Class yet) is ability to specify configurable option for breadcrumb delimiter.

For example one would like to use ">" as delimiter for some parts of the project and then use "»" or "→" somewhere else.

I've hardcoded it for my project to this on line 34 of Breadcrumb.php for now:

Code:
$CI->breadcrumblist->setDelimeter(' » ');

I've checked and URL helper is not loaded by default in CI 1.7. My vanilla autoload.php shows this:

Code:
/*
| -------------------------------------------------------------------
|  Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
|    $autoload['helper'] = array('url', 'file');
*/

$autoload['helper'] = array();
[/quote]

Well I stand corrected then... I apologize.

Yes, there is a way to set the delimiter. Since I created the BreadCrumbList as a POPO (Plain old PHP Object), you can set any of the BreadCrumbList's properties.

BreadCrumbList.php file
Code:
function setDelimeter($d){
    $this->delimeter='<span class="delimeter" >'.$d.'</span>';
}

Code has been updated and the new version released which takes care of this. You now just have to set it within the config file and the library does the rest.


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.