Here is the factory code for the Search page for the Customer Hub. If you would like to use this code on your page, you can hit the red “Revert” button on your page. If you do not see the “Revert” button, that means your code is up to date.

If you have customized your code and would like to compare it with the factory code below, we recommend using a text compare tool such as DiffNow.

 <ncy-breadcrumb></ncy-breadcrumb>
<div class="row">
    <div class="col-md-3 col-md-offset-3" ng-show="showKB">
        <h3>Knowledge Base</h3>
        <ul class="list-unstyled">
            <li class="result-item" ng-repeat="KB in KBSearchResults | limitTo: 15 | orderBy:'-HitRating'">
                <a href="/knowledgeBase/{{KB.Article.TicketID}}">{{KB.Article.Name}}  <span ng-if="KB.VoteRating" class="badge fa fa-thumbs-up">  {{KB.VoteRating}}</span></a>
                <p class="text-muted">Created by {{KB.Article.CreatorName}} <em>{{KB.Article.DateModified | date:'MM/dd/yyyy'}}</em></p><br />
            </li>
            <li class="result-item"  ng-show="!(KBSearchResults.length > 0)">
                <label>No Results</label>
            </li>
        </ul>
    </div>
    <div class="col-md-3" ng-show="showWiki">
        <h3>Wiki</h3>
        <ul class="list-unstyled">
            <li class="result-item" ng-repeat="Wiki in WikiSearchResults | limitTo: 15 | orderBy:'-HitRating'">
                <a href="/WikiDetail/{{Wiki.Article.ArticleID}}">{{Wiki.Article.ArticleName}}</a>
                <p class="text-muted">Created by {{Wiki.Article.Creator}} <em>{{Wiki.Article.ModifiedDate | date:'MM/dd/yyyy'}}</em></p>
            </li>
            <li class="result-item" ng-show="NoWikiResults">
                <label>No Results</label>
            </li>
        </ul>
    </div>
</div>
<style>
    .result-item:first-child {
        border-top: 1px solid #ddd;
    }
    .result-item {
        border: 1px solid #ddd;
        padding: 20px 20px 20px 20px;
        background-color:white;
    }
</style>

Need more help with this?
Don’t hesitate to contact us here.

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.