Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued Products: Article Manager 1:
Is it Possible to Paginate Results Pages?

 

 


dmorley
User

Feb 28, 2006, 7:25 PM

Post #1 of 22 (5409 views)
Shortcut
Is it Possible to Paginate Results Pages? Can't Post

I've got some categories with hundreds of articles and I would like paginate the listings pages so the person sees more than just "next" and "previous." Anyone know of a fix / add-on for this?

David


Damon
Staff / Moderator


Mar 3, 2006, 2:55 PM

Post #2 of 22 (5372 views)
Shortcut
Re: [dmorley] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi David,

I looked into this but was unable to come up with a good solution.

On the search_results.html template, you could add this code here:

Found $search_match$ record(s)<br>
Page $search_cpage$ of $search_tpage$<br>
Showing results $search_lnum$ to $search_hnum$<br>


and you it would publish this:

Found 54 record(s)
Page 2 of 11
Showing results 6 to 10


I know this isn't really what you were looking for but thought I would mention it in case you would find it useful.

If any one else in the forum has come up with a good solution to paginate article listings (maybe with javascript?) please post here and let us know.

Cheers
Damon Edis
interactivetools.com


dmorley
User

Mar 4, 2006, 7:39 AM

Post #3 of 22 (5359 views)
Shortcut
Re: [Damon] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

That is EXACTLY what I was looking for. Thanks Damon!


Turnstyle
User

Mar 16, 2006, 1:15 PM

Post #4 of 22 (5246 views)
Shortcut
Re: [Damon] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Damon.

I actually tried implementing this myself. But didn't see any changes. I still have the next, previous... Did I miss a step?


MikeB
Staff / Moderator


Mar 17, 2006, 2:00 PM

Post #5 of 22 (5221 views)
Shortcut
Re: [Turnstyle] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Turnstyle,

Thanks for the post! Smile

The code that Damon has outlined will actually just output some details about the search results if someone is curious how many results there are or how many pages of results there are.

This means that the "next" and "prev" links will still show up on the page.

You'll also want to make sure that the code in Damon's post is added outside of any of the "templatecells" that Article Manager uses in the _search_results.html template file.

If you'd like to attach a copy of this template file to your post I'd be happy to have a look at this for you.

I hope this helps and if you have any other questions or comments, just let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


(This post was edited by MikeB on Mar 17, 2006, 2:01 PM)


Turnstyle
User

Mar 17, 2006, 3:34 PM

Post #6 of 22 (5215 views)
Shortcut
Re: [MikeB] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hey Mike.

Yup that's exactly the effect I was trying to achieve. Obviously I would still need the next and prev links to be active. I was just thinking it would be helpful to say the number of articles within the search results... and within the category.

Attached is my search_results file as I have arranged it.

Thanks


(This post was edited by Turnstyle on Mar 21, 2006, 8:33 AM)


MikeB
Staff / Moderator


Mar 18, 2006, 3:28 PM

Post #7 of 22 (5193 views)
Shortcut
Re: [Turnstyle] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Turnstyle,

Thanks for the post and for attaching your template file! :)

I've taken a look at this template file and I don't actually see the code that Damon had mentioned. It looks like it is at the top of the file in some comments, but it hasn’t actually been added to the page wherever you'd like these details to show up.

You'll just want to take this template file, find the place where you'd like the search stats to appear (outside of any of the "templatecells") and just paste this code:


Code
Found $search_match$ record(s)<br> 
Page $search_cpage$ of $search_tpage$<br>
Showing results $search_lnum$ to $search_hnum$<br>


I hope this helps and if you have any other questions or comments, just let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


Turnstyle
User

Mar 21, 2006, 8:38 AM

Post #8 of 22 (5135 views)
Shortcut
Re: [MikeB] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Thanks Mike.

I have been playing around with it and I have got it to work in my search results. Thanks for your help!

Question... is it possible to achieve the similar result on the bottom of my category pages. For example:

(page 1 of 5)


MikeB
Staff / Moderator


Mar 21, 2006, 5:09 PM

Post #9 of 22 (5124 views)
Shortcut
Re: [Turnstyle] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Turnstyle,

Good to hear from you! Smile

I'm glad to hear that you've been able to get this set up on your search results page with Article Manager.

These lines of code are actually only designed to work on a search results page so they wouldn't actually bring up any results on the category index pages.

When someone views a category they'll be viewing a static .shtml file (for example, cat_index_5.shtml) that has been created by the category index template (/templates/index/default.html). Because this is a static file, rather than a search result, if you added the code to this page the placeholders ($search_match$, $search_cpage$, etc.) wouldn't have any values. This means you're not actually able to have these values displayed on that static .shtml file for your categories because your output would look something like this:

Found record(s)
Page of
Showing results to

When the user clicks "More Headlines" this will now be using search.cgi so this code should work fine again.

If you'd like to add this code to the category index template you could also add a bit of JavaScript so it will show nothing on the static file (cat_index_5.shtml) and will show the full details (pages, results found, etc.) once the visitor clicks "More Headlines".

I hope this helps and if you have any other questions feel free to let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


dmorley
User

Apr 12, 2006, 7:54 PM

Post #10 of 22 (4926 views)
Shortcut
Re: [MikeB] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Mike,

I think I spoke too soon. I'm having another issue now.

When I am using the query string to fetch the articles, I am referencing a search template that only has the code necessary diplay the result within the page that called them. But once the user click "next," they go to a blank page that just has the search result block, but not the rest of the page.

So my question is, I guess, am I doing something wrong? Or do I need to do something else to get this to work?

I've attached my templates.

prop_results.html is the query result block

prop_listings.shtml is the page that I call it into.
Attachments: prop_listings.shtml (6.94 KB)
  prop_results.html (8.45 KB)


MikeB
Staff / Moderator


Apr 13, 2006, 12:56 PM

Post #11 of 22 (4915 views)
Shortcut
Re: [dmorley] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi David,

Thanks for posting! Smile

When you're including some basic search results on a static .shtml file clicking the "next" or "prev" button will continue displaying the results with the same template meaning you'll lose your headers, footers, navigation etc. To fix this you'll just make a new template file for Article Manager to use for it's second page of results. There are just a couple of steps and I'll outline the steps for you:

1. First you'll want to make a copy of one of the templates that has the full design of the page (headers, footers, menus, etc.). For example, depending on the changes you've made you'd want to use a copy of /templates/index/default.html or /templates/search/search_results.html as these will have all of the content you'll need. You can save this as prop_results_full.html in the /templates/search/ directory.

2. Now that you have a template that has your full design on it you just need to tell the first page of results to use this new "full" template for the rest of it's pages of results.

You'll want to open up prop_results.html in an HTML/Text Editor of your choice and replace the tags that look like this:

$next_url$
$prev_url$

With this:

$next_url$&template=search/prop_results_full.html
$prev_url$&template=search/prop_results_full.html

You'll notice that we'll now be telling Article Manager's search to use the new "full" template that has all of the design on it.

I hope this helps but if you have any other questions or comments about this you can definitely let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


MikeB
Staff / Moderator


Apr 13, 2006, 12:56 PM

Post #12 of 22 (4914 views)
Shortcut
Re: [Turnstyle] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Everyone,

I just wanted to post a quick note about pagination and another method of setting this up.

We now have a tutorial on our site that outlines how you can set up some Google-style pagination (i.e. << 1 2 3 4 5 >>) on Article Manager's search results.

This could be used in addition to the solution Damon had provided above to allow your users to have some information about the amount of results along with some navigation that makes it easy for them to jump to a specific result page.

You can have a look at this tutorial here:

http://www.interactivetools.com/products/articlemanager1/tutorials_artman_numbered_search_results.html

I hope you find this helpful and if you have any other questions or comments, just let me know! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


(This post was edited by ross on Apr 17, 2007, 3:23 PM)


Turnstyle
User

Apr 13, 2006, 12:59 PM

Post #13 of 22 (4911 views)
Shortcut
Re: [MikeB] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hey Mike ~

I implemented this in my search results and it works perfectly! Thanks!

Question... is there a way to paginate results for indivdual categorys as well?


Donna
Staff / Moderator


Apr 14, 2006, 10:12 AM

Post #14 of 22 (4873 views)
Shortcut
Re: [Turnstyle] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Turnstyle,

Thanks for your post. :)

This method should work on any search results page -- including the category indexes after you hit "More Headlines". This uses the search results, based on the category index page, so you can simply modify that template to get the same results.

I hope this helps. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


DefenceTalk.com
User

Aug 23, 2006, 3:14 PM

Post #15 of 22 (4152 views)
Shortcut
Re: [Donna] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Nice.

Only concern I have with this is the:

<style>
.hidden_next
{

display: none;
}
</style>

How does this work with search engines that look for .hidden tags to see if website has hidden text, etc. This type of tags are not recommended by SEO experts... any insight on this?

Of course, hiding text (to fool the search engine, etc.) or anything like that is not the intention here.


(This post was edited by DefenceTalk.com on Aug 23, 2006, 3:14 PM)


MikeB
Staff / Moderator


Aug 24, 2006, 3:52 PM

Post #16 of 22 (4136 views)
Shortcut
Re: [DefenceTalk.com] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi,

Thanks for the post! Smile

I had played around with this when originally writing this script and the only issue was that before outputting the pagination the "Next" templatecell (which outputs the ">>") needs to have a value. If you were to remove the hidden div tag then you'd end up with an output that looks like this:

<< >> 1 2 3 4 5 >>

Although I'm no search engine guru, one thing I'll mention is that that this is only something that will show up on your search results template (which is a dynamic page). This means that this is probably not one of the pages that search engines would take a close look at (they'd be more likely to crawl your index and category index pages to get to your articles).

There may be a way you can do this using a bit of JavaScript rather than the hidden <div> tag. Let me know if this sounds like something that would work for you and I'll take a look at this and see if I can come up with a solution that will work for you.

I look forward to hearing from you! Smile


Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.


DefenceTalk.com
User

Aug 24, 2006, 4:43 PM

Post #17 of 22 (4133 views)
Shortcut
Re: [MikeB] Is it Possible to Paginate Results Pages? [In reply to] Can't Post


In Reply To
Hi,

Although I'm no search engine guru, one thing I'll mention is that that this is only something that will show up on your search results template (which is a dynamic page). This means that this is probably not one of the pages that search engines would take a close look at (they'd be more likely to crawl your index and category index pages to get to your articles).

I look forward to hearing from you! Smile


Shocked, thanks mike. Good point about hidden tag being on search results page. Of course, search engines wont be searching... I didn't even consider that factor in. :D

Thanks!Cool


jeremed
User

Apr 17, 2007, 5:29 AM

Post #18 of 22 (3122 views)
Shortcut
Re: [DefenceTalk.com] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

The link to this tutorial is broken. Can someone please post the working url? I'd like to have a look at it.


ross
Staff / Moderator


Apr 17, 2007, 3:25 PM

Post #19 of 22 (3105 views)
Shortcut
Re: [jeremed] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi there

Thanks for pointing that out!

We re-organized something on our site and well, there's links everywhere so some got over looked. I updated the link for you so you should be able to check it out now Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.




jeremed
User

Apr 18, 2007, 1:23 AM

Post #20 of 22 (3089 views)
Shortcut
Re: [ross] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Thanks.


jeremed
User

Apr 18, 2007, 5:23 PM

Post #21 of 22 (3077 views)
Shortcut
Re: [jeremed] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Which versions of article manager require this 'categoryNums=$categoryNums$' in the prev/next query in order to display results from the correct categories? I noticed that of the two 2.x versions I have, one requires it and one breaks if I use it.


Donna
Staff / Moderator


Apr 19, 2007, 3:40 PM

Post #22 of 22 (3066 views)
Shortcut
Re: [jeremed] Is it Possible to Paginate Results Pages? [In reply to] Can't Post

Hi Jereme,

All versions will accept it, but only on specific pages -- for example, if you use it on the globalIndex, it's going to get confused as there's no category there. But use it on the categoryIndex, and you're good to go. :)

Donna


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4