Collapse / remove some breadcrumbs on the breadcrumb trail on Service Portal

scotthal
Mega Expert

Has anyone figured out a way to collapse/remove crumbs on the breadcrumb feature on Service Portal?     We'd like to not allow users to find a way to the Service Catalog, but since Create Case is a record producer coming out of a category in the catalog the bread crumbs give users a way to navigate to the catalog.   I'm hoping to not have to create a custom widget.

Screen Shot 2017-06-13 at 9.16.06 AM.png

I was able to remove 'Support' from the breadcrumb trail by removing the Create Case item from that category.

Alternatively if there is a way to link to a record producer from the service portal menu using a type of 'url' and not the type of 'Catalog Item' that would likely achieve what I'm after.

4 REPLIES 4

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Breadcrumbs are set through the different widgets that is used. For example the SC Catalog item.



If you look at (Jakarta OOB version):


line 78-87 in client script and it is also using line 50-57 in server script.



Modifying can remove what you want in the breadcrumbs.



//Göran


patricklatella
Mega Sage

Hi Goran, I'm looking to do exactly this same thing...I take it there's no way to do this without cloning the which ever catalog item widget we're using?  Do we then not have to clone/update the breadcrumbs widget?  This is for London.  thanks!

Hi Patrick,

I would say that in the case where you don't want to give the the categories etc. between and just "home->Catalog item/record producer", then I would make my own breadcrumb widget instead of cloning/customization all pages that calling the breadcrumbs event. that is of course if that should be applied for all pages. You can then of course also mix with your new custom breadcrumbs and the oob breadcrumbs depending on what you want to show.

But if you change the pages as I mention above, then you still can use the Baseline Breadcrumbs.

Did that make sense?

//Göran
Feel free to connect:
LinkedIn
Subscribe to my YouTube Channel
or look at my Book: The Witch Doctor’s Guide To ServiceNow

Hi Goran,

thanks so much for the response.  I actually suggested to the client to add a category for the particular catalog item I was looking to hide the "Service Catalog" breadcrumb for...so I won't need to implement this.  But I know this will come up again...so thanks!  Love your new book by the way!