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

Home: Products: Listings Manager (Realty Manager & Auto Manager):
RM- How do I limit listings displayed?

 

 


MikeF
User

Mar 30, 2003, 1:43 PM

Post #1 of 8 (2358 views)
Shortcut
RM- How do I limit listings displayed? Can't Post

Hi,
on the main page of a site I would like to display in an shtml page...lets say for example the 5 most recent (new) listings( I settle for any five listings I guess). Its ok if the page lists like the search results page does... its just I would like that data with out the "search results" text. You know without "Found 6 of 36 Listings, << Page 1 of 2 >>" etc.

Is there a way I can do this with a static shtml page or a dynamic page of some kind? Or any other way?

Can I tweak either of these files to do it? /listings/index.shtml or _publish_listing_index.html
Have GREAT day!
MikeF


Benjamin
Staff


Mar 30, 2003, 3:21 PM

Post #2 of 8 (2353 views)
Shortcut
Re: [MikeF] RM- How do I limit listings displayed? [In reply to] Can't Post

Hi Mike!

Thanks for your post. To 'pull in' the latest five listings from Realty Manager into a webpage is perfectly possible, but would require a little work to set up.

In broad outlines, here's the way it would work:
- In your page where you want the listings to appear, you'd have a separate SSI (server side include), which would query the Realty Manager search engine saying: "give me the latest 5 listings, and return them with THIS template". You'd have to create a separate template with which to draw the results - in this file, you could omit the "Found 6 of 36 Listings" text.

So, the above is perfectly do-able, but requires two things:
- your server to be able to process SSIs,
- you to be running version 2.28 or later of Realty Manager.

Post me back, and I'll go into some more detail about all this. :-)
Ben
interactivetools.com


MikeF
User

Apr 1, 2003, 2:58 PM

Post #3 of 8 (2317 views)
Shortcut
Re: [Benjamin] RM- How do I limit listings displayed? [In reply to] Can't Post


In Reply To
Hi Mike!

Thanks for your post. To 'pull in' the latest five listings from Realty Manager into a webpage is perfectly possible, but would require a little work to set up.

In broad outlines, here's the way it would work:
- In your page where you want the listings to appear, you'd have a separate SSI (server side include), which would query the Realty Manager search engine saying: "give me the latest 5 listings, and return them with THIS template". You'd have to create a separate template with which to draw the results - in this file, you could omit the "Found 6 of 36 Listings" text.

So, the above is perfectly do-able, but requires two things:
- your server to be able to process SSIs,
- you to be running version 2.28 or later of Realty Manager.

Post me back, and I'll go into some more detail about all this. :-)

Hi Benjamin, thank you for the reply. Yes I would like to give this a try. I am somewhat familiar with ssi and my server can process them. Can you please give me more details on how to do this?
I am running RM beta 2.29
Have GREAT day!
MikeF


Benjamin
Staff


Apr 3, 2003, 9:37 AM

Post #4 of 8 (2281 views)
Shortcut
Re: [MikeF] RM- How do I limit listings displayed? [In reply to] Can't Post

Hey Mike,

No problem. Here's how it would work.

On a Unix server, you'd have this:
<!--include virtual="/path/from/webroot/to/search.cgi?search=1&perpage=5&template=_your_custom_template.html" -->

On a Windows server:
<!--exec cgi="/path/from/webroot/to/search.cgi?search=1&perpage=5&template=_your_custom_template_name.html" -->

Same thing, different syntax.

So, you'd take those SSIs above and place them in the page where you want your listings to appear. Then you'd need to create your custom template to return the results with. I'd suggest just making a copy of your _search_results.html template and storing it in the same directory (/templates). Then you could modify that new file to return the results however your want.

Hope this helps! Post me back if you have any trouble.
Ben
interactivetools.com


MikeF
User

Apr 3, 2003, 2:05 PM

Post #5 of 8 (2276 views)
Shortcut
Re: [Benjamin] RM- How do I limit listings displayed? [In reply to] Can't Post

Hi Ben, I am on Unix.
I have created a page (a copy of my search results page) it is /templates/_listings_home.html

I have created a page:

/public_html/test_properties_home.shtml on this page I have placed this include:

<!--include virtual="/home/username/public_html/cgi-bin/exec/search.cgi?search=1&perpage=5&template=_listings_home.html" -->

If I go to http://www.mysite.com/test_properties_home.shtml it does not display the listings.

I can see the listings by go to:

http://www.mywebsite.com/cgi-bin/exec/search.cgi?search=1&perpage=5&template=_listings_home.html

Can you tell me what I have done wrong? I am trying to create a "Properties Home page" that just displays 5 listings. Also is there a way these listings can be displayed with the "New". Do I insert &shownew somewhere in the include?
Thanks Mike


In Reply To
Hey Mike,

No problem. Here's how it would work.

On a Unix server, you'd have this:
<!--include virtual="/path/from/webroot/to/search.cgi?search=1&perpage=5&template=_your_custom_template.html" -->

On a Windows server:
<!--exec cgi="/path/from/webroot/to/search.cgi?search=1&perpage=5&template=_your_custom_template_name.html" -->

Same thing, different syntax.

So, you'd take those SSIs above and place them in the page where you want your listings to appear. Then you'd need to create your custom template to return the results with. I'd suggest just making a copy of your _search_results.html template and storing it in the same directory (/templates). Then you could modify that new file to return the results however your want.

Hope this helps! Post me back if you have any trouble.

Have GREAT day!
MikeF


Benjamin
Staff


Apr 3, 2003, 4:43 PM

Post #6 of 8 (2273 views)
Shortcut
Re: [MikeF] RM- How do I limit listings displayed? [In reply to] Can't Post

Hi Mike,

Since your search clearly works, it sounds like it's your SSI itself. Try changing it to this:

<!--include virtual="/cgi-bin/exec/search.cgi?search=1&perpage=5&template=_listings_home.html"-->

That's the path from your webroot (which I assume is the /public_html dir). Give that a go then post me back!
Ben
interactivetools.com


MikeF
User

Apr 3, 2003, 5:26 PM

Post #7 of 8 (2270 views)
Shortcut
Re: [Benjamin] RM- How do I limit listings displayed? [In reply to] Can't Post

Hi Ben,
the directive you posted here works if it is like this:
<!--#include virtual="/cgi-bin/exec/search.cgi?search=1&perpage=5&template=_listings_home.html"-->

"#"...sorry I a had a duh moment ...Blush

Can it display the "new" by some how adding &marknew=30&shownew=30 to the directive...

I think this can be solved by changing the directive to:

Code
<!--#include virtual="/cgi-bin/exec/search.cgi?search=1&perpage=5&sort_order=1%2Cabc%2Cforward&marknew=30&shownew&template=_listings_home.html"-->


Thanks for all your help been.Cool



In Reply To
Hi Mike,

Since your search clearly works, it sounds like it's your SSI itself. Try changing it to this:

<!--include virtual="/cgi-bin/exec/search.cgi?search=1&perpage=5&template=_listings_home.html"-->

That's the path from your webroot (which I assume is the /public_html dir). Give that a go then post me back!

Have GREAT day!
MikeF


Luke
Staff / Moderator


Apr 4, 2003, 9:56 AM

Post #8 of 8 (2247 views)
Shortcut
Re: [MikeF] RM- How do I limit listings displayed? [In reply to] Can't Post

Hi Mike!

Thanks for posting. :)


In Reply To


Can it display the "new" by some how adding &marknew=30&shownew=30 to the directive...



By adding a &marknew=30 all listings created within the last 30 days will be given a NEW stamp. Adding &shownew=30 will only output listings created within the last 30 days. So if you want to only display listings that were created within the last 30 days and have a NEW stamp on each listing adding these values to your query string would work just fine.

I hope this helps! :)

Luke Holzken
Product Development

 
 
 


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