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):
Custom Template

 

 


dpalmer
User

Jan 16, 2003, 5:35 AM

Post #1 of 5 (1749 views)
Shortcut
Custom Template Can't Post

Greetings!

Having a bit of a "brain block" on this one! Hope you can help.

http://www.portfolio-of-homes.com/cgi-bin/rm/exec/search.cgi

This is the "public" search page on this site. At the very bottom, far right you'll see a "box". This is for the owners use. He can search listings by "address", field1, and review. CANNOT give users access to listing addresses!

However, the site owner wants "his box" on a separate page, under a passworded directory.

I cannot figure out how to process that search from any other page than this public search page. I believe a custom template would help do the job, but I am completely lost as to how to code a custom template to read the db????????

Thanks,

Denise Palmer


Benjamin
Staff


Jan 16, 2003, 10:25 AM

Post #2 of 5 (1742 views)
Shortcut
Re: [dpalmer] Custom Template [In reply to] Can't Post

Hi Denise,

Thanks for your post!

What I'd suggest is to create a custom search form containing new search fields (address, etc), and place it within a separate html page within his password-protected directory. So, when your client opens this page, he can search by the private fields.

Probably the best way to do this is to make a copy of your _search_query.html template, and remodel THAT to add the new fields. Then, in the original _search_query.html template, remove the "box".

I hope this is clear. Post me back for any pointers! Smile
Ben
interactivetools.com


dpalmer
User

Jan 19, 2003, 4:40 PM

Post #3 of 5 (1710 views)
Shortcut
Re: [Benjamin] Custom Template [In reply to] Can't Post

BlushSo sorry Ben, but I just can't get this.

I don't need "fields". I just need a single box like what I already have at the bottom of the search listings page.

I copied that piece of the code out. Created a new html page, pasted that code in, and put this new html file in a different directory.

I keep getting errors. Here's what I have in the coded html page:

<form method=get action="$cgiurl$">
<input type="hidden" name="search" value="1">
<input type="hidden" name="perpage" value="10">
<input type="hidden" name="sort_order" value="4,123,reverse">
<INPUT TYPE="text" NAME="lfield1_keyword" size=20>
<input type="hidden" submit name="search" value="s">

which is the same as on my existing Search Listings page, and it works.

Once I move this new html file to a new directory though......it can't read from /search.cgi any longer? I tried a number of different "form method" url's....no success!?

Please help!

Denise


Benjamin
Staff


Jan 19, 2003, 4:52 PM

Post #4 of 5 (1708 views)
Shortcut
Re: [dpalmer] Custom Template [In reply to] Can't Post

Hey Denise,

No problem! The problem is that the code you copied from the _search_query.html template into your other html file contains a reference to a variable only accessible to the search.cgi script: $cgiurl$

Try doing this - replace it with the following:
http://www.portfolio-of-homes.com/cgi-bin/rm/exec/search.cgi

So that one line in your form would read:

<form method=get action="http://www.portfolio-of-homes.com/cgi-bin/rm/exec/search.cgi">

Try this. It should work fine now. Smile
Ben
interactivetools.com


dpalmer
User

Jan 19, 2003, 4:59 PM

Post #5 of 5 (1706 views)
Shortcut
Re: [Benjamin] Custom Template [In reply to] Can't Post

DUH! Thanks a bunch! And so quickly you responded!

 
 
 


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