Show category first instead of homepage in the breadcrumb path in search results?


3 Comentários

  • Tipene Hughes
    Zendesk Developer Advocacy
    Hey Samantha,
    Thanks for reaching out!
    It sounds like the #isnt helper might be useful here. You could add that to your search_results.hbs file to exclude path_steps at a specific index. Here’s an example of how that could look:
    <ol class="breadcrumbs search-result-breadcrumbs">
        {{#each path_steps}}
            {{#isnt @index 0}}
              <li title="{{name}}"><a href="{{url}}" target="{{target}}">{{name}}</a></li>
    Here’s a link that goes into a bit more detail on the #isnt helper:

    I hope this helps! Feel free to reach out with any questions.
  • Samantha Chavez

    Ha! worked like a charm. I should have asked here before spending days trying to figure it out myself. You are a gem, thank you. 

  • Tipene Hughes
    Zendesk Developer Advocacy
    Glad to hear that did the trick.
    Have a great day!

Por favor, entrar para comentar.

Powered by Zendesk