 |

mainebound
User
Jul 19, 2007, 8:38 AM
Post #1 of 11
(2880 views)
Shortcut
|
|
Printable Datasheet with 2 Larger Photos
|
Can't Post
|
|
Okay, I've wowed everyone with what I've accomplished so far with this new Web site. Now they want more! Since all of these property records are in the database they want to have a be able to print out a listing sheet for folks who walk-in. They want this to appear on only one page. Easy enough to do, but they don't want the thumbnails running down one side of the template. They want all the listing information on the bottom half of the page and as many as two photos appearing in a larger format at the top of the page. Is there a way that I can create placeholders for two photos and say insert here the preview image and insert here Image1, but display no wider than xx pixels? Stumped, but hopeful.
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 20, 2007, 10:03 AM
Post #2 of 11
(2861 views)
Shortcut
|
|
Re: [mainebound] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Hi mainebound, Thanks for posting. What might work here would be to set up a link on each listing page called "View datasheet" or something similar. You'll need to create a custom listing template, and then use search.cgi to display your listing page using this new template. Try using this code:
<a href="http://www.yoursite.com/path/to/search.cgi?view=$listing_num$&template=your-datasheet-template.html">View Datasheet</a> This will display that listing using your custom template which is set up to show the larger images on the page. To get images displaying in a large format on that page, you could set up some image tags on your custom template like this: <img src="$listing_url$/images/$file$"> This will display the full size images for that listing instead of thumbnails. You can specify a "width" attribute in this image tag to control the size. Give this a shot, 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.
|
|
|  |
 |

mainebound
User
Jul 25, 2007, 5:37 AM
Post #3 of 11
(2822 views)
Shortcut
|
|
Re: [Jake] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
I get this part, but I don't want to print the entire list of images. Just the first two is there a way to deliver just the preview image and Image1? Also, is there a way to make the pictures display horizontally rather than vertically? For example, two pictures side-by-side? Thanks! My client it trying to stretch this tool out to accomplish some things beyond the Web site.
(This post was edited by mainebound on Jul 25, 2007, 6:55 AM)
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 25, 2007, 5:26 PM
Post #4 of 11
(2790 views)
Shortcut
|
|
Re: [mainebound] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Hi mainebound, There are some ways to "hack" it so that only the first two images uploaded will display, but I generally don't recommend this -- any deviations from a really specific set of guidelines to upload images would result in broken images. Basically, it would involve hardcoding images to the default filename for the first two images uploaded. However, let me know if you'd like more details on this. :) 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.
|
|
|  |
 |

mainebound
User
Jul 25, 2007, 6:16 PM
Post #5 of 11
(2787 views)
Shortcut
|
|
Re: [Donna] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Yes, I'll need the details. To make my client happy I'll give it a whirl. Thanks.
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 27, 2007, 10:14 AM
Post #6 of 11
(2736 views)
Shortcut
|
|
Re: [mainebound] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Hi mainebound, Thanks for posting. To set this up, you'll need to hard-code some image links on your template file that look like this:
<img src="$listing_url$/images/$listing_num$_1.jpg"> These images will only work if you're uploading .jpg files for your listing images. If you were to upload a .gif, the image would break because the .jpg extension is hardcoded into the image URL. Note that this image tag will display the first image for that listing - this is determined by the "_1" part of the filename. To display the first two images horizontally, you might want to put those two images inside of a table like this:
<table> <tr> <td> <img src="$listing_url$/images/$listing_num$_1.jpg"> </td> <td> <img src="$listing_url$/images/$listing_num$_2.jpg"> </td> </tr> </table> Give this a try and let us know if you need any more information! ----------------------------------------------------------- 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.
|
|
|  |
 |

mainebound
User
Jul 28, 2007, 7:31 PM
Post #7 of 11
(2700 views)
Shortcut
|
|
Re: [Jake] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Jake, what do I do with the templatecell placeholders since this layout will be horizontal and I'm only trying to display two images? Whenever I play with them I seem to end up with error messages.
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 29, 2007, 3:26 PM
Post #8 of 11
(2650 views)
Shortcut
|
|
Re: [mainebound] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Hi there, You'll want to leave the content of the templatecells blank. They need to be there, but since you're hardcoding the images elsewhere, those will be empty. :) 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.
|
|
|  |
 |

mainebound
User
Jul 29, 2007, 3:58 PM
Post #9 of 11
(2648 views)
Shortcut
|
|
Re: [Donna] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
I've got this working. The last glitch I have is that my two images are repeating. What do I do now? Here's an example: http://www.dropanchorrealty.net/listman/exec/search.cgi?template=_office_test.html&view=28 Thanks! You guys have been a great help.
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 30, 2007, 4:26 PM
Post #10 of 11
(2581 views)
Shortcut
|
|
Re: [mainebound] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Without seeing your template, I can't say for sure... but my immediate guess would be that you've got the code inside one of the image templatecells. Make sure the hardcoded images are independent of the templatecells. :) 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.
|
|
|  |
 |

mainebound
User
Jul 31, 2007, 5:16 AM
Post #11 of 11
(2535 views)
Shortcut
|
|
Re: [Donna] Printable Datasheet with 2 Larger Photos
[In reply to]
|
Can't Post
|
|
Your guess was right on. It works beautifully now. Thank you.
|
|
|  |
|