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

Home: Products: Listings Manager Add-ons:
Google-style page navigation in search results

 

 


chris
Staff


Jun 27, 2002, 10:33 AM

Post #1 of 5 (16440 views)
Shortcut
Google-style page navigation in search results Can't Post

Recently, one of our customers asked about creating a "page navigation bar", which would allow site visitors to quickly jump between pages in the search results instead of being forced to use only the "next page" and "previous page" links. For example:

Found 74 of 351 Listings, Page 1 of 7 << < 1 2 3 4 5 ... > >>

Although this functionality isn't built into Realty Manager's search engine, it's possible to achieve with a little JavaScript. To illustrate how this is done, I've created an example search_results.html template, which you can examine here:

http://www.interactivetools.com/staff/chris/rm_search_result_page_navigation/_search_results.txt

This is a complete search results template for Realty Manager, with the exception that it's been renamed to a .txt file. Since I've combined JavaScript and $placeholders$, viewing the template directly as HTML with your browser would cause errors! (Just like looking directly into the sun!)

You can quickly find the changes I made by searching for the comments <!-- BEGINNING OF NAVIGATION CHANGES --> and <!-- END OF NAVIGATION CHANGES -->

The relevant parts of the template are in <script>...</script> tags. The first <script>...</script> section sets up some variables, while the second and third actually output HTML. The second and third scripts are identical, and are repeated to have the navigation bar at the top and bottom of the page. Please note the <noscript>...</noscript> tag, which will display the default navigation links if the visitor has JavaScript disabled.

If anyone has any questions about the script, I'd be happy to answer them.
Chris


(This post was edited by Chris on Jun 27, 2002, 11:20 AM)


john@pascoe.net
User

Jun 18, 2007, 4:23 PM

Post #2 of 5 (13718 views)
Shortcut
Re: [chris] Google-style page navigation in search results [In reply to] Can't Post

I tried this and it shows up with none active links.

I changed the links to what you see below.

document.write(' <a href="/cgi-bin/listman/exec/$cgiurl$?$query$&pagenum=' + super_prev_page + '">&lt;&lt;</a>');



Any suggestions


Donna
Staff / Moderator


Jun 20, 2007, 2:17 PM

Post #3 of 5 (13667 views)
Shortcut
Re: [john@pascoe.net] Google-style page navigation in search results [In reply to] Can't Post

Hi there,

I think we'd need to see what code you have for this -- this is a fairly advanced option, and debugging JavaScript can take a while. Try filling out a support request here:

https://www.interactivetools.com/support/email_support.cgi

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.


iloveav
Novice

Jan 5, 2008, 1:06 AM

Post #4 of 5 (10227 views)
Shortcut
Re: [chris] Google-style page navigation in search results [In reply to] Can't Post

Is it possible to use a gif of a text "NEXT" instead of >>
Thanks


Jake
Staff / Moderator


Jan 8, 2008, 10:03 AM

Post #5 of 5 (9753 views)
Shortcut
Re: [iloveav] Google-style page navigation in search results [In reply to] Can't Post

Hi iloveav,

Thanks for your post!

You can definitely use an image instead - try replacing these characters with an image tag on your _search_results.html template:

&gt;&gt;

You'll find those in the <!-- result pages --> template cell on this template.

Let us know if you need anything else. Smile
-----------------------------------------------------------
Cheers,
Jake Swanson - 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.


 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
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