This tutorial will outline how you can set up Article
Manager's search results page to have a navigation that will output
the amount of pages of search results and allow users to click on a
page number to jump directly to that page of results. The appearance
will be something like this:
<< 1 2 3
4 5 >>
Please let us know if you need assistance setting
this up on your site. You can post to the forum
or fill out a support
request, or even give us a call.
We also offer a Priority Consulting service if you would rather have
us set this up on your site for you. To inquire, send us an email,
or even give us a call ( 1-800-752-0455).
In this tutorial the template you'll be working with will be /artman/templates/search/search_results.html.
We recommend making a backup copy of this template before making any of
the following changes.
1. Modifying the templatecells
The first thing you'll want to do will be to modify the templatecells
that Article Manager uses to output it's "Next" and "Prev" links.
You'll want to take the block of code that looks like this:
And replace it with this:
2. Adding the Pagination
To add the actual navigation to your Article Manager search results page
you'll just want to copy this block of code and add it anywhere on the
search_results.html template that you'd like the pagination to
appear. The code is pretty complex but there aren't any changes you need
to make to it, you can just copy this entire block of code and paste it
right onto the template file:
3. Hiding the extra ">>"
In order for this code to work the templatecells for "next" and "previous"
both need to be executed so everything in the JavaScript has a value.
This means we're outputting the "next" templatecell twice in the above
piece of code so to prevent this from displaying on the page twice you'll
just add this quick bit of code in the <head> </head> section
of this template file:
You'll see that there are just a few steps to set this up and the end
result is a nice navigation on the search results page that makes it
easier for users to browse through your results. If you have any questions
about setting this up you can feel free to let us know.
We also offer a Priority Consulting service if you would prefer for us to setup your search results template for you.
To inquire, send us an email
or call 1-800-752-0455.