Skip to content

Make breadcrumbs more templatable #3

@bertoost

Description

@bertoost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions