 |

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
|
|
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
|
|
|  |
 |

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
|
|
|  |
|