Comment
Tera Expert

Great solution, I'm just having trouble getting the breadcrumbs to work properly on my catalog item page. Every page leading up to this has all the correct levels, but this one drops out the catalog name:


find_real_file.png


Here's my breadcrumb code in the client controller:



if ($scope.data.sc_cat_item) {


var bc = [{label: 'Catalogs', url: '?id=multi_catalog'}];



//var bc = [{label: $scope.page.title, url: '?id=' + $scope.data.sc_catalog_page}];



if ($scope.data.catalog_name)


bc[bc.length] = {label: $scope.data.catalog_name, url: '?id=' + $scope.data.catalog_url};


if ($scope.data.category)


bc[bc.length] = {label: $scope.data.category.name, url: $scope.data.category.url};



bc[bc.length] = {label: $scope.data.sc_cat_item.name, url: '#'};


$rootScope.$broadcast('sp.update.breadcrumbs', bc);


spUtil.setSearchPage('sc');


}



I'm pretty sure I'm close, but missed something obvious.