Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
Adding image file to listing manager form

 

 


GloriaI
User

Sep 14, 2008, 12:18 AM

Post #1 of 5 (2236 views)
Shortcut
Adding image file to listing manager form Can't Post

Hello everyone,

I am trying to add an image to the listing manager form so it will show us on both the listings page and the index page. I would like to display an image that says sold, leased or update under or near the description of the property. How can I modify the template to include a space where I can add the image of my choice to one of my listings? An example of what I am trying to do can be found on this page http://www.tipbuy.com/property/index.cfm?udcat=1645 The software has it hardcoded where the user can upload a graphic file and it automatically goes into the designated position on their listings page. I would like to be able to upload images that would automatically go into a similar position.

Thanks

Brenda


Jake
Staff / Moderator


Sep 14, 2008, 8:38 PM

Post #2 of 5 (2162 views)
Shortcut
Re: [GloriaI] Adding image file to listing manager form [In reply to] Can't Post

Hi Brenda,

There isn't a sure-fire way to have a user upload these types of images for use on your listing and index pages, but it is possible to set up a menu where they can choose from a preconfigured list of images like this - would that approach work for you?
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


GloriaI
User

Sep 15, 2008, 4:08 AM

Post #3 of 5 (2152 views)
Shortcut
Re: [Jake] Adding image file to listing manager form [In reply to] Can't Post

Hi Jake,

Yes, I would be very interested. I spent the weekend trying to facilitate this request to no avail. Please send detailed instructions of your idea - including an example of what it would look like as soon as possible.

Once again, thank you for your prompt response and attention on this matter.

Brenda


Donna
Staff / Moderator


Sep 15, 2008, 11:22 AM

Post #4 of 5 (2131 views)
Shortcut
Re: [GloriaI] Adding image file to listing manager form [In reply to] Can't Post

Hi Brenda!

No problem. Here's how you can set that up:

First, upload all of your images to a known location, and take note of the file names & the path to your images.

Next, add a new dropdown field to Listings Manager like this:

Descriptive Image (,sold,leased,updated)

...where "sold", "leased" and "updated" are the filenames (minus the extension if they're all the same -- but include the extension if they have different ones. But if it's all ".png" or all ".jpg" or something else, you can leave it out.)

Take note of what field this is in (ie, lfield20)

Next, add the following code to your template:

<script type="text/javascript">
if ('$lfield20$')
{
document.write("<img src='/path/to/$lfield20$.jpg'>");
}
</script>

...where "$lfield20$" is the field you created for that dropdown field, and the /path/to/ is the file path on your server to where you uploaded the images.

We've also set this up in a conditional javascript so that it only appears if there's something in the field. An alternative method would be to upload an image called "none.jpg" that is just a 1x1 pixel blank image, and change the field to:

Descriptive Image (none,sold,leased,updated)

And the template code to:

<img src="/path/to/$lfield20$.jpg">

This will default the image to "none", and so any image that doesn't have anything selected will only display the 1x1 pixel image (that nobody would really see.) The catch with this is that you would need to go back through any of your previous listings and manually select "none" (or any of the other options) or they won't have anything assigned and will show a broken image link.

I hope this helps! Let me know if you have any questions or concerns. :)

Donna

--
support@interactivetools.com


GloriaI
User

Sep 16, 2008, 4:21 AM

Post #5 of 5 (2115 views)
Shortcut
Re: [Donna] Adding image file to listing manager form [In reply to] Can't Post

Hi Donna,

I was able to figure it our with your help! Thanks so much!!!

Brenda