 |

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

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