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):
Using Custom Templates

 

 


dpalmer
User

Feb 13, 2003, 6:48 AM

Post #1 of 5 (1806 views)
Shortcut
Using Custom Templates Can't Post

HELP! What seems to be happening, consistently, is that I can use/assign a custom template as the output ONLY when I use an "a href" command......NOT when I use a form command?
Is this correct?

If I specify the custom template like this:
<form method=get action="http://www.portfolio-of-homes.com/cgi-bin/rm/exec/search.cgi?search=1&lfield52_keyword=yes&template=_open_house.html">
<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="hidden" name="marknew" value="">

I get the main search results page/format.

If I use this:
<A href="http://www.portfolio-of-homes.com/cgi-bin/rm/exec/search.cgi?search=1&lfield52_keyword=yes&lfield2_keyword=Manhasset&template=_open_house.html">View Open Houses in Manhasset / Plandome</a><BR>

I get my desired template?

What am I DOING WRONG!?


Benjamin
Staff


Feb 13, 2003, 12:55 PM

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

Hey Denise,

I think what may be happening is that because you don't fill in an explicit form field specifying the template to use, the search script somehow overwrites the template mentioned in the action attribute of the form tag.

Boy, that was clear. Let me try again. ;-)

Try removing the &template=_open_house.html from your form tag, to make this:

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

then, add a hidden field within the form itself:

<input type="hidden" name="template" value="_open_house.html">

This should work; give it a go! Post me back if you're still having trouble :-)
Ben
interactivetools.com


dpalmer
User

Feb 13, 2003, 1:11 PM

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

Hi Ben:

Great, now it displays my template, HOWEVER, it will not sort by lfield52=yes????? Here's what I have coded:
<form method=get action="http://www.portfolio-of-homes.com/cgi-bin/rm/exec/search.cgi?search=1&lfield52_keyword=yes">
<input type="hidden" name="template" value="_open_house.html">
<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="hidden" name="marknew" value="">

and then of course for the select field:
<select name="lfield2_keyword">

So, I want it to pull all records that field 52 says yes, for the users selected "town".

I had it working the other way?

Thanks,
Denise


Benjamin
Staff


Feb 13, 2003, 1:22 PM

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

Really, it worked the other way? That's kind of surprising. Try this - kind of like the last change, put the lfield25 info into a hidden field:

<input type="hidden" name="lfield25_keyword" value="yes">

and remove it from the action attribute of the form tag.

I'm optimistic this should fix it. Post me back!
Ben
interactivetools.com


dpalmer
User

Feb 13, 2003, 1:37 PM

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

THANK YOU! I was close with that...but no cigar!
Maybe it didn't work....who knows....at this point my head is swimming and my back is aching!Crazy

LOVE THOSE CLIENTS! Tongue

 
 
 


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