splittingred/Breadcrumbs — Issue #3: Make breadcrumbs more templatable
Author: bertoost
Created: 2011-10-18 17:56:28+00:00
State: open

Would like to see a more templatable way of the the crumb parts.

What I do is very simple;
Modify the breadcrumbs class inside the model directory and add these lines below the $this->_tpls = array(); definition

/* parse tpl names into _tpls array */
foreach($this->config as $key => $value) {
if(substr($key, 0, 10) == 'bcTplCrumb') {
$this->_tpls[$key] = $value;
}
}

Now you can add properties with the tpl name and override the templates within the breadcrumb. Other possibility is also fine by me but this works great and is easy to apply