Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
Displaying specific images

 

 


Toledoh
Enthusiast

Aug 26, 2008, 8:26 PM

Post #1 of 5 (5394 views)
Shortcut
Displaying specific images Can't Post

Hi Guys,

By default, LM names images as $listing_num$_1.jpg / _2.jpg etc.

However, clients tend to add photos, change them, delete them etc, so you have the ability through the admin to say which one you want a "Preview", as "Image #1, Image #2" etc

Is there anyway I can refer to these specific images?

In a printed page, I refer directly to $listing_num$_1.jpg, $listing_num$_2.jpg, $listing_num$_3.jpg, $listing_num$_4.jpg.

However, I need to show $listing_num$_"Image #1.jpg, $listing_num$_"Image #2.jpg etc.


ie.
http://www.sydneyresidential.com.au/listman/listings/l0001.html has a bunch of images, however the print friendly page doesn't http://www.sydneyresidential.com.au/listman/exec/search.cgi?view=1&template=_search_results_window4.html
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Jake
Staff / Moderator


Aug 27, 2008, 8:16 PM

Post #2 of 5 (5262 views)
Shortcut
Re: [Toledoh] Displaying specific images [In reply to] Can't Post

Hi Tim,

The only way to display the images in the order that they're set in the admin side of the software is to use the "image" template cell on your templates. There isn't a way to refer to these image slots specifically on your template files.

Let us know if you have any other questions. Smile
-----------------------------------------------------------
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]


Toledoh
Enthusiast

Sep 2, 2008, 4:09 PM

Post #3 of 5 (4196 views)
Shortcut
Re: [Jake] Displaying specific images [In reply to] Can't Post

OK - how about this then...

I am trying to get a single large image in one row, then three smaller images in the following row.

I can get the 3 small images using the "display in columns" tutorial, however;

1. Can I format the first image to have a different container than the following images (ie. <td colspan=3>), and
2. Can I get the template to stop displaying images after 4 images.

I think it would be something like the below - but I've got no idea on authoring this kind of thing;

<script>

if (count % 1 == 2) {
document.write("first image"), else
document.write("2nd, 3rd or 4th image")

if (count % 4 == 0) {
document.write("STOP THE PROCESS");
}
count++;

</script>

Can anyone help?
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Donna
Staff / Moderator


Sep 3, 2008, 2:25 PM

Post #4 of 5 (4177 views)
Shortcut
Re: [Toledoh] Displaying specific images [In reply to] Can't Post

Hi Toledoh,

Would something like this work for you?

http://www.interactivetools.com/forum/gforum.cgi?post=39850#39850

The end result of this tutorial looks like this:

http://www.interactivetools.com/staff/ross/dynamic_images/listings/l0001.html

Donna

--
support@interactivetools.com


Toledoh
Enthusiast

Sep 11, 2008, 5:46 PM

Post #5 of 5 (3955 views)
Shortcut
Re: [Donna] Displaying specific images [In reply to] Can't Post

I got it...


Code
<!-- templatecell : image --> 


<script>

if (count > 0 && count < 4) {
document.write("<td><img src='$listing_url$/images/$thumbnail$' width=230 height=173 border=0></td>");
}
count++;

</script>

<!-- /templatecell : image -->


Basically, this says to display the image if it's image number 2, 3 or 4. Prior to this image cell, I've the "hero" image number 1, then underneath it a table and row.... works a treat so far

Cheers,
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au