 |

kleisy
User
Mar 16, 2004, 11:01 AM
Post #1 of 19
(5832 views)
Shortcut
|
|
Hidden Fields on Realty Manager
|
Can't Post
|
|
Is there a way to hide the fields that are not used on the _realty/publish_listing.html? We will only use some of the fields (ie: bedrooms, lot size...) but would like the page to look customized.
|
|
|  |
 |

Donna
Staff
/ Moderator

Mar 16, 2004, 2:51 PM
Post #2 of 19
(5825 views)
Shortcut
|
|
Re: [kleisy] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi kleisy! Thanks for your post. :) Absolutely, you can hide fields... or even just remove them all together. To have them not show up on the publish listing page, simply remove the corresponding listing field placeholder. For example, if you don't want the MLS number to be viewed, simply remove $lfield2$ from the template. :) If you don't want a field to be used at all, you can also remove it from the Listing Editor completely. To do this, go into the Setup Options and choose Setup Listing Fields. Simply uncheck the "enabled" box next to the fields you don't want. :) You can find more information about adding & removing fields in this tutorial here: http://www.interactivetools.com/products/listingsmanager/tutorial_lm_new_fields.html I hope this helps! Let me know if you have any other questions or concerns. Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

kleisy
User
Mar 16, 2004, 3:51 PM
Post #3 of 19
(5824 views)
Shortcut
|
|
Re: [Donna] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
I'd like to have the fields available - so that if house A has a fireplace, the realtor can add it, but house B doesn't have a fireplace, it won't show up at all on the listings page. Right now, if some of the fields aren't used the field title still shows up with no information after it. Is it possible to hide the ones not in use? Thanks, Karen
|
|
|  |
 |

Donna
Staff
/ Moderator

Mar 16, 2004, 4:39 PM
Post #4 of 19
(5815 views)
Shortcut
|
|
Re: [kleisy] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Aha! I see what you mean. :) The easiest way to do this is with a JavaScript conditional statement. So, you would have something like this:
<script type="text/javascript"> <!-- if ('$lfield10_je$') { document.write("Fireplaces: $lfield10_je"); } --> </script> ..replacing 10 with the correct field number, of course. :) Note that anyone who has JavaScript turned off won't see these fields, it'll just show up blank. I hope this helps! :) Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

kleisy
User
Mar 17, 2004, 8:43 AM
Post #5 of 19
(5800 views)
Shortcut
|
|
Re: [Donna] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Thanks Donna! That works great - just what I was looking for! I did add a $ sign to the end of the second ($lfield15_je$) and it works. Thanks for your fast reply - This forum is a great resource. Karen
|
|
|  |
 |

casi
Novice
Mar 19, 2004, 1:30 PM
Post #6 of 19
(5757 views)
Shortcut
|
|
Re: [Donna] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
donna could you please add the script from above to that code? is there an easier way then adding this script each by each? ------------------ <script type="text/javascript"> <!-- if ('$lfield10_je$') { document.write("Fireplaces: $lfield10_je$"); } --> </script> ----------------- <tr> <td width="120" align="right" class="a_9px">Fireplaces: </td> <td class="b_9px">$lfield15$</td> </tr> ---------------- thanks thomas
(This post was edited by casi on Mar 19, 2004, 2:08 PM)
|
|
|  |
 |

Eric
Product Specialist

Mar 19, 2004, 2:58 PM
Post #7 of 19
(5746 views)
Shortcut
|
|
Re: [casi] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
HI casi, Thanks for the forum post . I'm not sure what you mean in your post, but if I interpret your question correctly, you'll need to add the script at every instance where that placeholder is needed. From what I know there's simply no way around it. Let me know if I didn't answer your question and if you can elaborate on the question I may be able to help you more. Cheers, Eric Lau - Product Specialist support@interactivetools.com
|
|
|  |
 |

subedar
User
Oct 9, 2004, 2:22 AM
Post #8 of 19
(5221 views)
Shortcut
|
|
Re: [Eric] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Eric Will this code work if I want to stop printing blank spaces if the fields are not entered? Neville
|
|
|  |
 |

Cliff
Staff

Oct 9, 2004, 5:07 PM
Post #9 of 19
(5216 views)
Shortcut
|
|
Re: [subedar] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Neville, Thanks for posting. That's exactly what it’s designed to do! Try it out on your _publish_listing.html template to see if that gets you the effect that you are looking for. Let me know how that goes Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

subedar
User
Oct 11, 2004, 6:46 AM
Post #10 of 19
(5195 views)
Shortcut
|
|
Re: [Cliff] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Cliff Thanks for reply. I can't seem to make it work! Here is my code snippet: <script type="text/javascript"> <!-- if ('$lfield23_je$') { document.write("Unexpired Term yrs: $lfield23_je$"); } --> </script> <font face="ms sans serif" size=2>Unexpired Term yrs: $lfield23$</font><br> <script type="text/javascript"> <!-- if ('$lfield24_je$') { document.write("Service Charge pa approx.£ $lfield24_je$"); } --> </script> <font face="ms sans serif" size=2>Service Charge pa approx.£ $lfield24$</font><br> If fields are 'blank' I don't want the field 'Title' printed or spaces. Sample as I have now: Greenhouse Garage Off-street parking Unexpired Term yrs: Service Charge pa approx.£ Ground Rent pa £ Managing Agent: Other information Local Authority: Adur District Council Council Tax Band: B Council Tax gross pa approx.£ 972 Sample as I require: Greenhouse Garage Off-street parking Other information Local Authority: Adur District Council Council Tax Band: B Council Tax gross pa approx.£ 972 Neville
|
|
|  |
 |

Cliff
Staff

Oct 11, 2004, 1:58 PM
Post #11 of 19
(5185 views)
Shortcut
|
|
Re: [subedar] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Neville, Thanks for the update. It just looks like you need a little tweak to the code there. Try this instead.
<script type="text/javascript"> <!-- if ('$lfield23_je$') { document.write("Unexpired Term yrs: $lfield23_je$<br>"); } --> </script> <script type="text/javascript"> <!-- if ('$lfield24_je$') { document.write("Service Charge pa approx.£ $lfield24_je$"); } --> </script> From what I could see, the comments were commenting out the ending </script> tag. Let me know how that goes for you Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

subedar
User
Oct 12, 2004, 4:59 AM
Post #12 of 19
(5173 views)
Shortcut
|
|
Re: [Cliff] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Cliff Thanks for reply. Now it does close the gaps up but it doesn't print anything when there is data entered in the fields????????? Neville
|
|
|  |
 |

MikeB
Staff
/ Moderator

Oct 12, 2004, 1:34 PM
Post #13 of 19
(5162 views)
Shortcut
|
|
Re: [subedar] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Neville, Thanks for the update! Copying and pasting the above code should give you the effect you're looking for. You may want to try formatting your code to look exactly like Cliff's as I've heard of scripts not working if they aren't formatted properly. If that doesn't seem to work feel free to attach your template file to your next forum post and I can take a look at it for you. If you'd be able to post some sample data of what you're trying to put in those fields that would be helpful as well. I hope this helps you and if you have any other questions please let me know! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

subedar
User
Oct 13, 2004, 3:13 AM
Post #14 of 19
(5150 views)
Shortcut
|
|
Re: [MikeB] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi MikeB That did the trick! Thanks, thanks. Any chance of a reply on my posting Oct 8th - Emailing from Listing Editor? Neville
|
|
|  |
 |

annie
User
Jul 19, 2007, 5:22 AM
Post #15 of 19
(3172 views)
Shortcut
|
|
Re: [Cliff] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Is there a way of applying this principle to a form button? I want to show a form button for a pop-up window if an email address is input into $lfield15$. I don't want the button to appear if there's no email address. Here's the code in my _publish_listing page <td width="100%" colspan="2"><form><input type="button" class="search" VALUE="Email the Owner" onClick="openPopup('http://www.ukpropertiesdirect.co.uk/cgi-bin/property/exec/search.cgi?template=_contactvendor.html&view=$listing_num_he$')"></form></td>
this is the code in the <head> for the pop-up <SCRIPT LANGUAGE="JavaScript"><!-- myPopup = ''; function openPopup(url) { myPopup = window.open(url,'popupWindow','width=325,height=400'); if (!myPopup.opener) myPopup.opener = self; } //--></SCRIPT>
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 19, 2007, 4:54 PM
Post #16 of 19
(3161 views)
Shortcut
|
|
Re: [annie] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi annie, Thanks for posting! While we aren't really javascript experts here, I should be able to provide you with the basic code you'll need to get this running. Try this out:
<script type="text/javascript"> <!-- if ('$lfield15_je$') { document.write('<td width="100%" colspan="2"><form><input type="button" class="search" VALUE="Email the Owner" onClick="openPopup('http://www.ukpropertiesdirect.co.uk/cgi-bin/property/exec/search.cgi?template=_contactvendor.html&view=$listing_num_he$')"></form></td>'); } --> </script> You'll might run into an issue here with the quotes used in your onClick attribute. These characters may need to be escaped in order for this script to run correctly. You can read more about escaping quotes in javascript here: http://www.javascripter.net/faq/quotesin.htm Try this out annie and let us know if you need anything else. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

annie
User
Jul 20, 2007, 3:33 AM
Post #17 of 19
(3118 views)
Shortcut
|
|
Re: [Jake] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Jake, I couldn't seem to get this to work. I tried escaping the characters too. The other thing I realized with this method was that the email address was inserted into the html of the output page. I was trying to avoid this, hence the use of the pop-up which may add a little more protection from the email harvesters. I'm wondering if there is a non-javascript alternative. My objective is if the email field is empty (or maybe incorporating a second field eg. email address - yes,no) then nothing is displayed on the page or perhaps a blank gif. If there is an email, or second field is yes, then something displays, eg. image, text, button, that, when clicked, will open up a pop-up window where I can use a form script. I hope you can help. I'm running out of ideas.
|
|
|  |
 |

ChetW
Staff

Jul 21, 2007, 10:05 AM
Post #18 of 19
(3090 views)
Shortcut
|
|
Re: [annie] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Hi Annie, Thanks for the follow-up! I have an idea that should allow you to set-up the hide option that you had mentioned. This idea will involve creating a new field, this new field will only control whether the link is displayed or not. Below I have supplied a brief overview on how this would work: 1. Create a new dropdown listings field, let's call this field "E-mail Link Display Settings". The two options that you add to this field will be "visible,none". 2. For example purpose let's assume that your newly created "E-mail Link Display Settings" field uses $lfield50$. 3. Next you will edit you template files to look something like this:
<div style="$lfield50$"> <a href="">YOUR LINK DETAILS HERE</a> </div> What's happening here is you are using inline CSS to determine whether the link should appear or not. If the e-mail link should appear you would select the "visible" option from the newly created "E-mail Link Display Settings" field when creating the listing. Doing this will change the above code to this on your published pages:
<div style="visible"> <a href="">YOUR LINK DETAILS HERE</a> </div> And selecting the "none" option would result in this output:
<div style="none"> <a href="">YOUR LINK DETAILS HERE</a> </div> Does this sound like an option that may work for you Annie? If you have any other questions please feel free to ask. Cheers, Chet Woodside - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

annie
User
Jul 21, 2007, 2:08 PM
Post #19 of 19
(3078 views)
Shortcut
|
|
Re: [ChetW] Hidden Fields on Realty Manager
[In reply to]
|
Can't Post
|
|
Thanks for getting back to me Chet. I came up with something very similar. I created an additional checkbox field to indicate whether an email address is present or not. If ticked, then the words, 'Click to Send a Message' appears on the _publish-listing page and opens a link to a pop-up page. My only outstanding issue now is at the following post: http://www.interactivetools.com/forum/gforum.cgi?post=56705
|
|
|  |
|