I need to ensure a link is added to all categories (except the current one) in my breadcrumbs. In my
$crumbs variable provided by
page > html > breadcrumbs is the following var_dump:
array (size=3) 'home' => array (size=6) 'label' => string 'Home' (length=4) 'title' => string 'Go to Home Page' (length=15) 'link' => string 'http://dev.example.co.uk/' (length=32) 'first' => boolean true 'last' => null 'readonly' => null 'category270' => array (size=6) 'label' => string 'Batteries By Use' (length=16) 'link' => null 'title' => null 'first' => null 'last' => null 'readonly' => null 'category321' => array (size=6) 'label' => string 'Digital Camera Batteries' (length=24) 'link' => string '' (length=0) 'title' => null 'first' => null 'last' => boolean true 'readonly' => null
As you can see, there should be a link variable on
category270 but I have no idea how to get this to work. The core doesn't provide much guidance on adding these links to the breadcrumbs.
Obviously, I'll need to track down the area where this breadcrumb is added, but with regard to categories, I have no idea where to look.