Skip to content

Instantly share code, notes, and snippets.

@kgiszewski
Last active October 5, 2017 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kgiszewski/df4d374896234e5e3a93e2cdc4e1ae23 to your computer and use it in GitHub Desktop.
Save kgiszewski/df4d374896234e5e3a93e2cdc4e1ae23 to your computer and use it in GitHub Desktop.
<div id="main" class="search-page">
<section class="container">
<h2>Showing @pagedResultList.TotalItemCount result(s) for keywords "@keywords":</h2>
<ol>
@foreach (var result in pagedResultList)
{
var umbracoContent = Umbraco.TypedContent(result.Id);
<li>
<h3>
<a href="@umbracoContent.Url">@umbracoContent.Name</a>
</h3>
<small>@umbracoContent.Url</small>
</li>
}
</ol>
</section>
<section class="container">
@Html.PagedListPager(pagedResultList, page => ("?q=" + keywords + "&p=" + page))
</section>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment