Breadcrumbs on Search Results page

Mark Elliott asked on January 15, 2015 19:58

Is there a way on the search results page to display the breadcrumbs control on each search result but to hide the last item of the breadcrumb. Setting ShowCurrentItem=false does not work.

Thanks!

Correct Answer

Roman Hutnyk answered on January 15, 2015 22:33

Disabling of Show in navigation property for How Communities Produce Good Political Leadership should remove it from breadcrumbs. Also you may specify Where condition for breadcrumbs.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Roman Hutnyk answered on January 15, 2015 20:45

I think you can uncheck "Show in navigation" in search results page properties and it should disappear in breadcrumbs.

0 votesVote for this answer Mark as a Correct answer

Mark Elliott answered on January 15, 2015 20:53

Good suggestion but that does not seem to remove it from the breadcrumb.

For example on our search result item it is displaying: Advice + Knowledge > Articles & Resources > Dunwoody Police Patrol Online Communities

we don't want the last item of the breadcrumb to appear, it should just be:

Advice + Knowledge > Articles & Resources

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on January 15, 2015 21:14

Mark, if I'm not mistaking, you're talking about the result of the next line of code: <%# TextHelper.BreakLine(SearchHighlight(SearchResultUrl(),"<strong>","</strong>"),75,"<br />") %> I'd recommend to implement some server side method, which will remove that last piece of the path. You can do this even within your transformation.

0 votesVote for this answer Mark as a Correct answer

Mark Elliott answered on January 15, 2015 22:12

Roman,

Thanks for the response. No we are not talking about the SearchResultURL (we removed that from the transformation). We are talking about the breadcrumb control that sits above the search result. We want to remove the last item from the list:

CodeAdvice + Knowledge > Experts Speak > Civic Strategies Podcast > How Communities Produce Good Political Leadership

How Communities Produce Good Political Leadership Kit Dunlap, president and CEO of the Greater Hall Chamber of Commerce in Gainesville, Georgia, talks about how communities create effective elected officials who enjoy broad public support. Hall County has a record of producing strong political leaders. In fact, both Georgia’s... Relevance:
7/10/2012 8:00:00 AM

0 votesVote for this answer Mark as a Correct answer

Mark Elliott answered on January 15, 2015 22:52

Hi Roman,

You are right! Setting the Show in navigation property worked. However the missing piece is that on the breadcrumb control had to set IgnoreShowInNavigation property to false (I guess the default value for this is true for some reason).

Thanks!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.