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

Respondida

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>
            {{/isnt}}
        {{/each}}
    </ol>
     
    Here’s a link that goes into a bit more detail on the #isnt helper:
     
    https://developer.zendesk.com/documentation/help_center/help-center-templates/helpers/#isnt-helper
     
    I hope this helps! Feel free to reach out with any questions.
     
    Tipene
    1
  • 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. 

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

Por favor, entrar para comentar.

Powered by Zendesk